Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rm nonexisting*; alias with parameters?
- X-seq: zsh-users 9285
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: rm nonexisting*; alias with parameters?
- Date: Thu, 11 Aug 2005 00:51:20 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RzwOwQQJOP1FHJ3MtmYUxHV4oneGjRUGH0BRh1xC6LK0sFkTmPYuAltBbBA//zfrIr+DYSZf15uQ9Blnup4JdgfOngXzpZdpcz0XRF/ehr581Add8iXu2w0/A8PFE6akqmIbC/k/MMKZOqET6K3unaU55+ns2N+uIhs9GFkgiKM=
- In-reply-to: <7c737f3005081013313151c308@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <deliverable@xxxxxxxxx> <7c737f3005081012187ed74a81@xxxxxxxxxxxxxx> <20050810200620.E765C8633@xxxxxxxxxxxxxxxxxxxxxxxx> <7c737f3005081013313151c308@xxxxxxxxxxxxxx>
On 8/10/05, Deliverable Mail <deliverable@xxxxxxxxx> wrote:
> Thanks, Peter! (I hear you, Ligesh... will do later :) Worked as
> described. Making rm -f does not change zsh behavior, of course, as
> globbing happens before -f can kick in -- so it's a bit confusing that
> -f doesn't work. Thankfully zsh says zsh: before its globbing error.
> It's a tricky fault for those who expect rm -f to shut up and do it...
>
> Alexy
You can also add (N) directly after the pattern without the options
set and they will silently expand to nothing. ie rm *.txt *.bak(N)
will fail if there are no *.txt files but no *.bak files is okay.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author