[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: another problem with bash PS1 handling
From: |
Chet Ramey |
Subject: |
Re: another problem with bash PS1 handling |
Date: |
Mon, 19 Oct 2009 12:13:30 -0400 |
User-agent: |
Thunderbird 2.0.0.23 (Macintosh/20090812) |
> Whether POSIX applies or not, from a logical standpoint history number
> and custom bash escape expansion should be last, after parameter
> expansion and command substitution because doing it first breaks
> command substitution (see my earlier post) or using variables in a
> prompt (a='!'; PS1='$a ' will result in a literal "!" rather than the
> history number), it is unintuitive and deviates from the behavior of
> other shells such as variants of ash and ksh.
I disagree. I don't see a compelling reason to change 20 years of
behavior here.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/