From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4218 invoked by alias); 17 Aug 2013 14:01:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17935 Received: (qmail 28825 invoked from network); 17 Aug 2013 14:01:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: "\rm -f" stops after the 1st glob not found Date: Sat, 17 Aug 2013 14:01:01 +0000 (UTC) Organization: Your Company Message-ID: References: <130816211320.ZM27930@torch.brasslantern.com> <20130817133600.GG10846@pug.qqx.org> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2.25.239.18 User-Agent: Xnews/2009.05.01 X-Antivirus: avast! (VPS 130817-0, 08/17/2013), Outbound message X-Antivirus-Status: Clean Aaron Schrab wrote in news:20130817133600.GG10846 @pug.qqx.org: > At 11:11 +0000 17 Aug 2013, zzapper wrote: >>Bart Schaefer wrote in >>news:130816211320.ZM27930@torch.brasslantern.com: >> >>> 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.