bash prompt update lagging

Michael P. Soulier msoulier at
Mon Nov 16 01:54:49 UTC 2009


I use the same bash config on Linux, FreeBSD and Cygwin, for the most part,
and I just noticed that on my FreeBSD system the prompt is updating one
command too late.

root at kanga:/root$ pwd
root at kanga:~$ cd /root
root at kanga:~$ pwd
root at kanga:/root$ 

As you can see, the prompt with my current location doesn't update until the
command _following_ my directory change. 

root at kanga:/root$ echo $PS1

I'm wondering if this is a bash bug on bsd, or if I'm doing something wrong.

Has anyone seen this?

Michael P. Soulier <msoulier at>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list