From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: The (e) parameter flag and side-effects
Date: Thu, 9 Mar 2023 15:54:05 -0800 [thread overview]
Message-ID: <CAH+w=7aQrsDvhmuTT2jMuo80+REmj0hE09yB6Cm4+qC03nkv8g@mail.gmail.com> (raw)
In-Reply-To: <22530-1678390068.958410@dJKq.2wyk.2KSv>
On Thu, Mar 9, 2023 at 11:28 AM Oliver Kiddle <opk@zsh.org> wrote:
>
> While using (e) is arguably the right thing to do, it will expand things
> like command-substitution and we've always intentionally shied away
> from expanding anything that could have side-effects when parsing the
> command-line for completion.
We could add a flag for that, though, I think; it would just need to
do the same trick I applied to subscript values in named references,
that is, toggle the EXECOPT flag off and back on around (or in) the
call to subst_parse_str().
next prev parent reply other threads:[~2023-03-09 23:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-09 12:33 [BUG]Filename autocompletion using git-bare repos (--git-dir=... --work-tree=...) eliasghafari
2023-03-09 17:12 ` Bart Schaefer
2023-03-09 19:27 ` Oliver Kiddle
2023-03-09 23:54 ` Bart Schaefer [this message]
2023-03-10 10:07 ` Elias Ghafari
2023-03-10 10:12 ` Roman Perepelitsa
2023-09-11 15:05 ` Elias Ghafari
2023-09-12 2:26 ` Jun T
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='CAH+w=7aQrsDvhmuTT2jMuo80+REmj0hE09yB6Cm4+qC03nkv8g@mail.gmail.com' \
--to=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).