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

Re: "\rm -f" stops after the 1st glob not found



At 11:11 +0000 17 Aug 2013, zzapper <david@xxxxxxxxxxxxxx> wrote:
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote in
news:130816211320.ZM27930@xxxxxxxxxxxxxxxxxxxxxx:

 ls *.{jpg,gif}(.N)

Bart,
Yeah that's what happened and confused me, of course if I was doing a
delete that would/could be disastrous

How so?

ls with no (non-option) arguments will list the current directory. rm with no arguments won't delete anything, it will just display an error message if the -f option wasn't used.



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