Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: if the file is not found the files is not found is the file not found
- X-seq: zsh-users 16827
- From: Moritz Bunkus <moritz@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: if the file is not found the files is not found is the file not found
- Date: Sun, 4 Mar 2012 15:36:45 +0100
- Authentication-results: mr.google.com; spf=pass (google.com: domain of moritz@xxxxxxxxxx designates 10.60.5.231 as permitted sender) smtp.mail=moritz@xxxxxxxxxx
- 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=
- In-reply-to: <20120304143102.GE18164@solfire>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20120304143102.GE18164@solfire>
Hey,
On Sun, Mar 4, 2012 at 15:31, <meino.cramer@xxxxxx> wrote:
> First I wrote
>
> rm -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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author