in reply to portable globbing behavior for command-line tool

This ignores the possibility of escaping wildcards in bash. For example, say you have a file foo*bar. Someone using your script in bash would do

<code> munge.pl foo\*bar <code>

Bash would replace the \* with *, and pass the script the filename foo*bar. You would then expand the wildcard, and fail to find the file.

Ron Steinke rsteinke@w-link.net
  • Comment on Re: portable globbing behavior for command-line tool

Replies are listed 'Best First'.
Re: Re: portable globbing behavior for command-line tool
by seattlejohn (Deacon) on Jul 04, 2002 at 06:35 UTC
    Aaah, good point. Perhaps I need to check $^O and do the globbing only on Windows...