Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "\rm -f" stops after the 1st glob not found
- X-seq: zsh-users 17935
- From: zzapper <david@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: "\rm -f" stops after the 1st glob not found
- Date: Sat, 17 Aug 2013 14:01:01 +0000 (UTC)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Your Company
- References: <CAMXWGTxJiYpsksFKfEi0=p+nj=O06YQorg3n5MOD8MpNxdQsjQ@mail.gmail.com> <XnsA21E9E653B4F5davidrayninfocouk@80.91.229.13> <130816211320.ZM27930@torch.brasslantern.com> <XnsA21F7BFC9949davidrayninfocouk@80.91.229.13> <20130817133600.GG10846@pug.qqx.org>
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