zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: command substitution word joining
Date: Mon, 5 Mar 2018 04:00:12 +0000	[thread overview]
Message-ID: <20180305040012.ll5yx7dojubeqv6u@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <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@gmail.com> 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


      reply	other threads:[~2018-03-05  4:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-02 23:45 Daniel Shahaf
2018-03-03  5:33 ` Mikael Magnusson
2018-03-03  5:50   ` Bart Schaefer
2018-03-05  4:00     ` Daniel Shahaf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180305040012.ll5yx7dojubeqv6u@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).