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

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



Aaron Schrab <aaron@xxxxxxxxxx> wrote in news:20130817133600.GG10846
@pug.qqx.org:

> 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.
> 
You are right you are corect all though ls lists the unmatched files rm 
will not delete them with or without the -f.





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