Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Use glob patterns while reading a file
- X-seq: zsh-users 23748
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: Use glob patterns while reading a file
- Date: Fri, 9 Nov 2018 09:35:53 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181109093556euoutp022a5b870e48b912882930a3e487421d85~law5Edo032309023090euoutp029
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541756156; bh=z03MTfoyQlCKT1jTiKkUaxcTfWX9F70lA8AKSpOHpdE=; h=Subject:From:To:Date:In-Reply-To:References:From; b=oLzjTF6NRL+IrB9tWZXUDnS5FMCxJsL+KjSfM3DGx0Iz2/hDrFyPlMS8T6fQyO6hS HOCwwi1d23nizNROfKiEeh32HksT4yEKWxv/2OAQmWTrEPEbx2zVIPLR8nordH4npG iBFun7b0EDcgAWInHNmY3I2FqLnPQFHK0xt8fRZE=
- In-reply-to: <CAJjRh0SROuSoc4f+3bqLNsc+iASx7MRULrNWqdPjK+MKFHys7A@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20181108225555epcas2p274de218aef35e46f189ebbfbd9d1892f@epcas2p2.samsung.com> <CAJjRh0SROuSoc4f+3bqLNsc+iASx7MRULrNWqdPjK+MKFHys7A@mail.gmail.com>
On Thu, 2018-11-08 at 23:53 +0100, Dominik Ritter wrote:
> I want to use read one of two files, regardless if it exists or not. My
> first approach is to use the alternative glob syntax, but with no luck:
> $(< ./(a|b)(N))
That's a special syntax, expecting a single file so that it doesn't try
to do globbing.
You can get it to work with
$(cat <./(a|b)(N))
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author