* POSIX and PROMPT_BANG
@ 2017-09-27 23:56 Bart Schaefer
0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2017-09-27 23:56 UTC (permalink / raw)
To: Zsh hackers list
By a coincidence I won't bother to explain, it has just come to my
attention that the POSIX spec says (reprhrased in zsh terminology)
that PS1 shall be interpreted as if PROMPT_BANG is set, which we do
not do by default in sh emulation (but do in ksh emulation).
However, it appears PROMPT_BANG is *not* supposed to apply to PS2 or
PS4 (PS3 is unspecified because "select" is not a POSIX feature). Zsh
applies it the same to all prompts.
I'm not advocating doing anything about this, merely making note.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-27 23:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-27 23:56 POSIX and PROMPT_BANG 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).