On Fri, 15 Oct 2010 11:33:45 -0800 Ken Irving <ken.irv...@alaska.edu> wrote:

> Note, though, that the '*' will still be there if the glob operation
> fails to expand to anything.
>  
>   $ echo foo /usrz*
>   foo /usrz*
> 
> I guess this makes sense, since just about all characters can be used in
> filenames, but I always need to check for this case, e.g., in for loops.

Bash has the "nullglob" option to change that behavior.

-- 
D.

Reply via email to