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

Re: if the file is not found the files is not found is the file not found



Hey,

On Sun, Mar 4, 2012 at 15:31,  <meino.cramer@xxxxxx> wrote:

> First I wrote
>
>    rm -f ${f}-[0-9]*.mp2
>
> which breaks which an error, if the certain has not created files
> of that pattern ... despite the "-f" of the "rm" command.

The error probably comes from zsh that it cannot match any file. Try
again with "setopt nullglob"; in that case the pattern not matching
anything will simply be replaced by nothing and the command executed.

Kind regards,
mo



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