zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: POSIX and PROMPT_BANG
Date: Wed, 27 Sep 2017 16:56:34 -0700	[thread overview]
Message-ID: <CAH+w=7Zn6N-0=bpsXQX-LoVjMa5PT+nWKCVq6G1-13SVjOjRzA@mail.gmail.com> (raw)

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.


                 reply	other threads:[~2017-09-27 23:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=7Zn6N-0=bpsXQX-LoVjMa5PT+nWKCVq6G1-13SVjOjRzA@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).