Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: command substitution word joining
- X-seq: zsh-users 23204
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: command substitution word joining
- Date: Mon, 5 Mar 2018 04:00:12 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=3YvcSOoO1uJixrSS03kyvitHCJPEB d8/wMWCrVOKE2k=; b=SD/iBnVb08CZJ7a4/NR21mKpIpYRoSjwkpYcIY4g8+XbL MIEvKD2jGHuRfgc83AucnV5yZJwqxCfHAeYNK9tqFKra9cSs6jLAoIIKwJbYsHW6 sa8mVB8UAj8aRD/lcxU2w41mrKxmVQvOphSbE4NesOxgtMHYKix+3NoGiI5HIZD8 gyNM4PPwclba/KmtZD9LAcBWektNKTi6sHgL6Opa+WFECae99lAr/svbo/587zYB SxDxKWPvrT5kVaso4mOcJMYOasaCe6inNurpT4ZebsgRhQgcCtdOXPzRIPcTvFlC o3vBbJUtqZctQRmYy9lKQNPrcZcYrY8C1OyW5yedw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=3YvcSOoO1uJixrSS03kyvitHCJPEB d8/wMWCrVOKE2k=; b=fFboYNehL300OLjylExHiM8Qy/x3iNtpvaJk6Cg0vHv6f VXe0eIvoIFpM7+TaFNkR+dOWJ4FML7wIVSZkHo3dUD6daXEiuU3XDECahlqKBUjA 9VLdOdC/9/B2JA2gjogzPt9ON3buc6LPZxQjH6V+RDaRopKNTJURb1TLJ8N+EAQ4 v2cOleLQLQRo8qZwqWeXzE4L6cNjMqnR5A20ZIokIvvI5Lvy9dXNNwKv7CEX3Wmr 6CHVYMk34LPL86YRwUpuk36LUR8G6eV/uquQ+6BRBhRzEroP2ZAPnYHFKkDdXgpu syRnPh74ZRqeMZss23cjyH+Z8XZY7z8fL1bLDtqOw==
- In-reply-to: <CAH+w=7ao8JUbbSROihmQNv5QyochrtZdWi7e1v2LjjfX0jCCtw@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: <20180302234544.p6w3fw32xdgwcktm@tarpaulin.shahaf.local2> <CAHYJk3Rjr2ynna83DwgBTXF56EVZchaKjFT6D8C6NWuP2esZGA@mail.gmail.com> <CAH+w=7ao8JUbbSROihmQNv5QyochrtZdWi7e1v2LjjfX0jCCtw@mail.gmail.com>
Bart Schaefer wrote on Fri, Mar 02, 2018 at 21:50:32 -0800:
> On Fri, Mar 2, 2018 at 9:33 PM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> > echo --input-file=<(:)
Ah, thanks.
> > --input-file=/proc/self/fd/13
> > I could imagine some command taking multiple filenames with ,
> > separation perhaps? But you can't prepend anything with =(:).
>
> You can prepend an assignment:
>
> % foo==(:)
> % print $foo
> /tmp/zshdewoIj
This loses the O_EXCL atomicity guarantee:
% x==(:)
% ls $x
ls: cannot access '/tmp/zshioVJpt': No such file or directory
It does work as a precommand assignment, though:
% x==(:) eval 'ls $x'
/tmp/zsh37OnHf
Messages sorted by:
Reverse Date,
Date,
Thread,
Author