From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14409 invoked by alias); 4 Mar 2012 14:45:34 -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: 16827 Received: (qmail 2904 invoked from network); 4 Mar 2012 14:45:31 -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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bunkus.org does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bunkus.org; s=mail201203; t=1330871806; bh=kBIjiVGDTN0449giPJaPdXrReKJuxhaiulU7r9f+lg8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Content-Type:Content-Transfer-Encoding; b=1909No3RN5I6XSuTDj8q9DWen5hSAE4KR05dbAIvFwr+ZnidORfW027wJ/KMRbHFa f5G1wLp174VicNLHGZYNt3lpFbgi8yuJnIMUnF6bGl6R0aY9TGL+uX9irDBcpgw0g3 FsT+fg7Y3g7TLzvef8WHqI8b8TtLGBZZOTzFZzYU= Received-SPF: pass (google.com: domain of moritz@bunkus.org designates 10.60.5.231 as permitted sender) client-ip=10.60.5.231; Authentication-Results: mr.google.com; spf=pass (google.com: domain of moritz@bunkus.org designates 10.60.5.231 as permitted sender) smtp.mail=moritz@bunkus.org MIME-Version: 1.0 In-Reply-To: <20120304143102.GE18164@solfire> References: <20120304143102.GE18164@solfire> Date: Sun, 4 Mar 2012 15:36:45 +0100 Message-ID: Subject: Re: if the file is not found the files is not found is the file not found From: Moritz Bunkus To: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey, On Sun, Mar 4, 2012 at 15:31, wrote: > First I wrote > > =C2=A0 =C2=A0rm -f ${f}-[0-9]*.mp2 > > which breaks which an error, if the certain has not created files > of that pattern ... despite the "-f" of the "rm" command. The error probably comes from zsh that it cannot match any file. Try again with "setopt nullglob"; in that case the pattern not matching anything will simply be replaced by nothing and the command executed. Kind regards, mo