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

Re: rfc patch, abort rm instead of only removing the * from the cmdline



On Sat, Aug 16, 2008 at 06:02:13PM +0200, Mikael Magnusson wrote:
[...]
> Maybe it was unclear from the context I gave, but I'm talking about this prompt:
> % rm *
> zsh: sure you want to delete all the files in /tmp/a [yn]?
> 
> Answering no to this prompt, I would expect the command to not be run,
> but it is, with the * removed.
[...] 

With what version of zsh? I can't reproduce it here with the
current one.

% rm *
zsh: sure you want to delete all the files in /tmp/a [yn]? n
% rm
rm: missing operand
Try `rm --help' for more information.
%

Am I missing something?

-- 
Stéphane



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