[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 regressions related to PROMPT_COMMAND
From: |
Bob Proulx |
Subject: |
Re: 2 regressions related to PROMPT_COMMAND |
Date: |
Mon, 2 Mar 2009 09:22:03 -0700 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Andreas Schwab wrote:
> smallnow writes:
> > PROMPT_COMMAND='$(cd)'
>
> Since $(cd) expands to nothing this is mostly a no-op.
True. But he did say this as well:
> > I used $(cd) as a trivial command substitution, but any command
> > substitution seems to have the same effect.
> > I actually had some useful code including parameter expansions
> > going on in my PROMPT_COMMAND.
So the fact that it is mostly a noop accomplishes the effect Ian was
needing in order to produce a small bug case. Perhaps he could have
used $(:) instead to make it more obvious? (shrug)
Bob