Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Globbing confusion
- X-seq: zsh-users 10767
- From: Jean-Rene David <jrdavid@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Globbing confusion
- Date: Wed, 27 Sep 2006 10:22:51 -0400
- In-reply-to: <20060927.044622.79063538.Meino.Cramer@xxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060926.050007.74745714.Meino.Cramer@xxxxxx> <20060926042423.GA31728@princo> <20060927.044622.79063538.Meino.Cramer@xxxxxx>
* Meino Christian Cramer [2006.09.26 23:00]:
> I inserted
>
> rm -rf /tmp/mc-4.6.1i*(/)
>
> into my cleanup-script for /tmp and executed it _twice_.
Oh, my mistake. You need the (N) flag because the
warning is generated by the shell when the
globbing pattern generates no match, not by "rm".
Sorry.
> I tried the following:
> I mkdir a directory mc-4.6.1A and touch mc-4.6.1B then I did a
> rm -rf /tmp/mc-4.6.1*(/N) from within a script. BOTH entries were
> removed. Only the directory should be removed.
Works here...
% zsh --version
zsh 4.3.2 (i686-pc-linux-gnu)
--
JR
Messages sorted by:
Reverse Date,
Date,
Thread,
Author