How to send a string to function containing wild card?

Hey All,

I am trying to send a string as an input parameter to a function which contains a wild card character - *

However the function is taking it as:

PS: The directory - '/path/to/my/dir/' has 3 files:
file1.out,
file2.out,
file3.out

However I want to disable this wild card behaviour i.e to say I want to literally send '/path/to/my/dir/file*.out' as a string without any wild card expansion.

Post your function(). You'll need to handle the arg passed to escape your wildcard char.

Look into the man bash. There is a flag called noglob for set. Use as

set -o noglob

just before you make the call.