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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/
signature.asc
Description: OpenPGP digital signature