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