zsh-workers
 help / color / mirror / code / Atom feed
* (Z) flag translates >! into >|, just mentioning
@ 2017-06-03 17:41 Sebastian Gniazdowski
  2017-06-04  0:33 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Gniazdowski @ 2017-06-03 17:41 UTC (permalink / raw)
  To: zsh-workers

Hello
Maybe this will be perceived as a bug, who knows:

% a=$(<<\endl
print -r -- "${1[(w)1]}" >!"$ZCONVEY_OTHER_DIR/${ZCONVEY_ID}.busy"
endl
% print -rl -- "${(z@)a}"
print
-r
--
"${1[(w)1]}"
>|
"$ZCONVEY_OTHER_DIR/${ZCONVEY_ID}.busy"

This is not harmful as >! and >| are equivalents, but I have to ask, does someone know about other such replacements?

--
Sebastian Gniazdowski
psprint /at/ zdharma.org


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (Z) flag translates >! into >|, just mentioning
  2017-06-03 17:41 (Z) flag translates >! into >|, just mentioning Sebastian Gniazdowski
@ 2017-06-04  0:33 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2017-06-04  0:33 UTC (permalink / raw)
  To: zsh-workers

On Jun 3,  7:41pm, Sebastian Gniazdowski wrote:
}
} This is not harmful as >! and >| are equivalents, but I have to ask,
} does someone know about other such replacements?

It also converts >&! into &>| (and similarly for >>! >>&! too).

This is because the lexer is invoked by (z) and canonicalizes those
tokens.  You'll note that the output of "set -x" is altered in the
same way.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-04  0:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-03 17:41 (Z) flag translates >! into >|, just mentioning Sebastian Gniazdowski
2017-06-04  0:33 ` Bart Schaefer

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).