zsh-workers
 help / color / mirror / code / Atom feed
From: Zach Riggle <zachriggle@gmail.com>
To: Zach Riggle <zachriggle@gmail.com>, zsh-workers@zsh.org
Subject: Re: Where is this =(:) construct documented?
Date: Fri, 11 Jun 2021 15:39:29 -0500	[thread overview]
Message-ID: <CAMP9c5mMk-oCRGt4LqAFrOiRWq3ujuoipMaCv2X=W2nEDXmxQA@mail.gmail.com> (raw)
In-Reply-To: <20210611200411.bheljlneq6z3ydsf@chazelas.org>

Thanks for the help, all!  This was impossible to Google for!

Most obfuscated I could make it (to mess with coworkers) is...

(){<<<$1} =(:)

Zach Riggle

On Fri, Jun 11, 2021 at 3:04 PM Stephane Chazelas <stephane@chazelas.org> wrote:
>
> 2021-06-11 20:53:22 +0100, Stephane Chazelas:
> [...]
> > info zsh "Process Substitution"
> [...]
>
> For information, searching in info (with / or s or Ctrl+S) these
> days uses extended regexps. So, to search for =(, you need to
> search for =\( or toggle regexp matching off first with R. See
> info info / for details.
>
> [...]
> > That's the third form of process substitution.
> >
> > ksh introduced the first two <(...) and >(...) in the 80s. zsh
> > added that third form in the 90s.
>
> Already in ksh86. In ksh86 you could actually also use A (B) in
> place of A <(B) though it looks like it was removed in later
> versions. rc also had process substitution with a different
> syntax IIRC.
>
> See also:
>
> https://unix.stackexchange.com/questions/49918/when-was-process-substitution-first-introduced/49952#49952
>
> and
>
> https://unix.stackexchange.com/questions/181937/how-create-a-temporary-file-in-shell-script/181996#181996
>
> --
> Stephane


  reply	other threads:[~2021-06-11 20:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-11 19:17 Zach Riggle
2021-06-11 19:18 ` Zach Riggle
2021-06-11 19:53 ` Stephane Chazelas
2021-06-11 19:58   ` Roman Perepelitsa
2021-06-11 20:04   ` Stephane Chazelas
2021-06-11 20:39     ` Zach Riggle [this message]
2021-06-14 12:44       ` Vincent Lefevre
2021-06-14 14:32         ` Stephane Chazelas

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='CAMP9c5mMk-oCRGt4LqAFrOiRWq3ujuoipMaCv2X=W2nEDXmxQA@mail.gmail.com' \
    --to=zachriggle@gmail.com \
    --cc=zsh-workers@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).