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

Re: Globbing confusion



* 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