Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Filename Expansion



>Toshi Isogai wrote:
>This works fine if there is at least one file matches the
>pattern. Otherwise, it exits with an error and 'other stuff'
>never gets done.
>
>How can I make it so that it will just skip 'for' loop if
>there aren't any files matches the pattern?

setopt nullglob

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author