[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: default PS1 is not POSIX-compliant?

From: Chet Ramey
Subject: Re: default PS1 is not POSIX-compliant?
Date: Fri, 3 Mar 2017 11:18:01 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1

On 3/3/17 10:31 AM, Eric Blake wrote:
> Chet, can you weigh in on http://austingroupbugs.net/view.php?id=1038 ?
> There is a question of whether bash's choice of setting PS1='\s-\v\$ '
> is correct in --posix mode, or whether it should be merely PS1='\$ '
> when started in sh mode.  Allowing more than just the dollar (or hash
> for root) and space would require a tweak to the POSIX wording.

I think it would be worthwhile for Posix to tweak the wording to specify
that a string ending in "$ " (or "# ") is permissible.  That would still
capture existing behavior of all shells.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]