Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
POSIX and PROMPT_BANG
- X-seq: zsh-workers 41775
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: POSIX and PROMPT_BANG
- Date: Wed, 27 Sep 2017 16:56:34 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=ddxgxW2i4Nv6aZwomD6mTt2BP/IjjMti4XOqatZe224=; b=jsAGvhowFuZ81fmJxG9DkkEv/WXHMfmQ60T8wAnMhZZOHpXbocS1QSjAGjcEvxfo+a IbvpsE3LH6MCUFP6GTYogVT6vC47dhQmuiydhZxPZOsVbnvh9CapkuYJ7T7vNmH57CEa Ou5K0KS9/jUy4LeHF1gsnZ695vIVetfSzcbYaFGBIWIp1h8WDr7mjwmnSCZTe2QhKmBB 2tWAjjkM5WhdDTe3k43wgkbRDwu8+lYGJjEfFqdN1u+dA7JmvJYUdEKYWY2BLLCzDY37 D4S0WIMFX/fVM7rheQMebzITicX+ZkLZ0ife4XFYkTDk5cUTHi99goQzkfX0E8uxxA3H M1gg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author