Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2009 18:14:25 -0500
From:      "Michael P. Soulier" <msoulier@digitaltorque.ca>
To:        freebsd-questions@freebsd.org
Subject:   bash prompt update lagging
Message-ID:  <20091115231424.GA29418@anton.digitaltorque.ca>

next in thread | raw e-mail | index | archive | help

--y0ulUmNC+osPPQO6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

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@kanga:/root$ pwd
/home/msoulier
root@kanga:~$ cd /root
root@kanga:~$ pwd
/root
root@kanga:/root$=20

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

root@kanga:/root$ echo $PS1
\[\033[1;32m\]\[\033[0;36m\]\u\[\033[1;32m\]@\[\033[0;36m\]\h\[\033[1;32m\]=
:\[\033[0;37m\]${SHORT_PWD}\[\033[1;32m\]$\[\033[0;37m\]

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

Has anyone seen this?

Thanks,
Mike
--=20
Michael P. Soulier <msoulier@digitaltorque.ca>
"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

--y0ulUmNC+osPPQO6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iD8DBQFLAItQKGqCc1vIvggRAvR4AJ0ceygLKbIP/AMoVqDtKPw15H/cUgCgt1Y2
63rwpkFCK+WIrKBJUrcIG7A=
=DP26
-----END PGP SIGNATURE-----

--y0ulUmNC+osPPQO6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091115231424.GA29418>