Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
history expansion interactively, scripted, and (z) PE
- X-seq: zsh-workers 42266
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: history expansion interactively, scripted, and (z) PE
- Date: Sat, 13 Jan 2018 15:47:28 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=apIqM5195H/oW97JEFSaRqQ0gwVkWT55cP9r17ZV6eg=; b=nLJwZXmbN5n06P12+iRFbgWLiuSlXaoEyNfvmV0N1jf4eD2SvFhp7uSV7dGxt089Oh N8YUso7iOtQXDFR+Ar9bfPfgOCKfe0QXwfWFDZc26QEey95g2pFwYRFS6F/aa5AdWPdu D9ukxDVYw2qNrDn5btMren32T6LOjVTwwVJaWyJx2z9FU6heSTadKucoBbrPWTzOhZOg xQVeq5xgwUz0ArokwPgPk5aQ1Z1nxBh0JGTzjiV0Mcjrt1e/NDT4iBWaLueoUYClZo7O dc3sn8qa35yUzxEKDGprEzQg8/mm0bnx17eGphSsPD8TCi1/9SKKvZrygQigYmMC+ZM1 fmzg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
% zsh -f
% : !?foo bar
zsh: no such event: foo bar
% zsh -fc ': !?foo bar'
zsh:1: no matches found: !?foo
% print -l ${(z)${:-': !?foo bar'}}
:
!?foo
bar
It seems history expansions are interpreted differently interactively
and scripted and that the (z) PE flag follows the scripted parsing.
Shouldn't these all be parsed the same way?
- Matthew Martin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author