Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: avoid errors on expansion failure
- X-seq: zsh-users 18909
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Eric Smith <Eric.Smith@xxxxxxxxxx>
- Subject: Re: avoid errors on expansion failure
- Date: Fri, 13 Jun 2014 15:34:51 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=F7/RhJuzTfTV9tmpH8S6NAMRwHB9MqXzVMPbfYZ3XIY=; b=ZzFBw0/fmoPTGHsCMhlxrPI0AjNU5qZpGjnQkthxZF8z8gxKhfBS+WriLq38/FG1Si IyS8F1S3hnRwelLlwo47S8vDOtifpNCfTPtzE5nxEUAVtXgvpGNnnwcEkgVXpy2MfPop rvFZ6N84MMRND4HjMH7cLXjJ7OybGmYMNcuSi6HE6JwhHN+7kYNoOnnbz4Q1To2GYhA/ oAwVx0hfN2X9DnQFm8GZnzTQELw5DykBSY3FNdv2oF8xHc91IDioDjbPIybg3JR+VkMm MAQV6et4XOl09s5DSMOooYhHlf5mrehrLotyl1QYN7skLy4EnvP4NMdZDi/MmpEC1oyQ spOg==
- In-reply-to: <mailbox-1960-1402665112-220393@pepper.0.0.200>
- 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: <mailbox-19078-1402649032-929168@pepper.0.0.200> <XnsA34B90051F6ECdavidrayninfocouk@80.91.229.13> <mailbox-1960-1402665112-220393@pepper.0.0.200>
On 13 June 2014 15:13, Eric Smith <Eric.Smith@xxxxxxxxxx> wrote:
> Thank you ...
>
>> > How do I make the command ignore this and to run first time?
>>
>> don't know if this helps your case
>> >
>> /tmp > touch fred.jpg
>
> Nope, you are just updating the timestamp on the file, thereby
> over-riding the time specification.
You probably misunderstood the whole point then, touch creates a file
only for the purpose of demonstrating the commands that follow.
However, I would recommend using the (foo|bar|baz) syntax rather than
{foo,bar,baz} as it is a single glob expression that doesn't need any
additional (N) flags to not fail and no caveat when none of the
patterns match.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author