[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pathname expansion part two
From: |
Davide Brini |
Subject: |
Re: pathname expansion part two |
Date: |
Fri, 15 Oct 2010 20:41:54 +0100 |
On Fri, 15 Oct 2010 11:33:45 -0800 Ken Irving <ken.irving@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.