Re: possible bash 4.0.10 bug: command substitution in PROMPT_COMMAND
From:
Greg Wooledge
Subject:
Re: possible bash 4.0.10 bug: command substitution in PROMPT_COMMAND
Date:
Fri, 10 Apr 2009 13:26:33 -0400
User-agent:
Mutt/1.4.2.2i
On Thu, Apr 09, 2009 at 05:12:13PM -0400, Jared Yanovich wrote:
> Specifically, I use this output of a command in my prompt (sorry to
> offend anyone who finds that ridiculous), so it would be nice to have
> the old functionality back if possible.
You can do:
PS1='$(your command) other stuff here'
The command substitution will be performed every time the prompt is
displayed.