Re: Evaluate expression every time directory changes

2007-06-29 Thread Bob Proulx
bash_user wrote: > That is correct. > I would like to understand what triggers the shell to re-evaluate > PROMPT_COMMAND every time > directory / clock change occur. The documentation for bash says: PROMPT_COMMAND If set, the value is executed as a command prior to issuin

Re: Evaluate expression every time directory changes

2007-06-29 Thread bash_user
That is correct. I would like to understand what triggers the shell to re-evaluate PROMPT_COMMAND every time directory / clock change occur. THANKS FOR REPLY! Dave Rutherford-2 wrote: > > On 6/28/07, bash_user <[EMAIL PROTECTED]> wrote: >> Lets say I would like to update environment vari

Re: Evaluate expression every time directory changes

2007-06-29 Thread Dave Rutherford
On 6/28/07, bash_user <[EMAIL PROTECTED]> wrote: Lets say I would like to update environment variable based on ${PWD} should I clobber my prompt generation routine or there is a better way. Something like this? PROMPT_COMMAND='eval NEWPWD="\$PWD"' Dave __