zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: "Zsh workers" <zsh-workers@zsh.org>
Cc: Peter Stephenson <p.w.stephenson@ntlworld.com>,
	Bart Schaefer <schaefer@brasslantern.com>,
	"O. simplex" <ordinatio.simplex@protonmail.ch>,
	Daniel Shahaf <d.s@daniel.shahaf.name>
Subject: SH_FILE_EXPANSION broken with process substitution
Date: Tue, 23 Jun 2020 23:23:07 +0200	[thread overview]
Message-ID: <86219-1592947387.142438@emcj.0STP.JFZv> (raw)
In-Reply-To: <20200610134459.514b0a3d@tarpaulin.shahaf.local2>

Following on from the gpg completion breakage, it seems this option has
been broken when used in combination with EQUALS.

This got broken in 35a8612 (workers/26042), released in 4.3.10:
  zsh -df --shfileexpansion -c ': =(echo hi)'

The _gpg issue is minimally demonstrated with the following. It is
reproducible even with 3.0.8 so may be by design.

  zsh -df --shfileexpansion -c 'a=( ${x%[:=\[]*} )'

The documentation only talks about tilde expansion not equals expansion
so it isn't obvious why this should fail. Or why swapping : and = fixes
it. This perhaps goes to show that the option isn't widely used other
than as part of emulate sh (which also disables equals).

Oliver

  reply	other threads:[~2020-06-23 21:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-01  1:42 Bu report - unix/_gpg completion broken O. simplex
2020-05-15  5:21 ` Solution: " O. simplex
2020-05-15  8:53   ` Daniel Shahaf
     [not found]     ` <Ww4N4kk6TH_2Cp6_B0A709kTrD8LonXJPl6qmAAx75k0eQ7OczWUSwo7LCJOnXJm-nyuAVtdf8HOIGGb0krLeM0Z_fRWy723j1XTVA6vgek=@protonmail.ch>
2020-06-06  6:38       ` O. simplex
2020-06-06  8:19         ` Daniel Shahaf
2020-06-09 23:07           ` Oliver Kiddle
2020-06-10 13:44             ` Daniel Shahaf
2020-06-23 21:23               ` Oliver Kiddle [this message]
2020-06-24 10:28                 ` SH_FILE_EXPANSION broken with process substitution Peter Stephenson
2020-06-24 10:46                   ` Peter Stephenson

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=86219-1592947387.142438@emcj.0STP.JFZv \
    --to=okiddle@yahoo.co.uk \
    --cc=d.s@daniel.shahaf.name \
    --cc=ordinatio.simplex@protonmail.ch \
    --cc=p.w.stephenson@ntlworld.com \
    --cc=schaefer@brasslantern.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).