Re: possible bash 4.0.10 bug: command substitution in PROMPT_COMMAND
From:
Chet Ramey
Subject:
Re: possible bash 4.0.10 bug: command substitution in PROMPT_COMMAND
Date:
Fri, 10 Apr 2009 20:03:06 -0400
User-agent:
Thunderbird 2.0.0.21 (Macintosh/20090302)
Jared Yanovich wrote:
> Hi, I upgraded to bash 4.0.10 and my PS1 prompt is no longer displaying
> anything at all. Here is a contrived .bashrc:
>
> .bashrc:
> ------------------------ BEGIN
> f()
> {
> $(:)
> PS1='$ '
> }
> PROMPT_COMMAND=f
> ------------------------ END
>
> However, it works if I take the command substitution sequence `$(...)'
> out.
I cannot reproduce this using bash-4.0.10 or bash-4.0.17 on Mac OS X,
Ubuntu, RHEL 4, or FreeBSD.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/