From owner-freebsd-questions@FreeBSD.ORG Mon Nov 16 01:54:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 567ED1065670 for ; Mon, 16 Nov 2009 01:54:49 +0000 (UTC) (envelope-from msoulier@digitaltorque.ca) Received: from mail.storm.ca (unknown [IPv6:2607:f0b0:0:6:209:87:239:66]) by mx1.freebsd.org (Postfix) with ESMTP id 7B5268FC1A for ; Mon, 16 Nov 2009 01:54:48 +0000 (UTC) Received: from anton.digitaltorque.ca (hs-216-106-102-79.storm.ca [216.106.102.79]) by mail.storm.ca (8.14.2+Sun/8.14.2) with ESMTP id nAFNEVfX001036 for ; Sun, 15 Nov 2009 18:14:36 -0500 (EST) Received: by anton.digitaltorque.ca (Postfix, from userid 1000) id 55266860232; Sun, 15 Nov 2009 18:14:25 -0500 (EST) Date: Sun, 15 Nov 2009 18:14:25 -0500 From: "Michael P. Soulier" To: freebsd-questions@freebsd.org Message-ID: <20091115231424.GA29418@anton.digitaltorque.ca> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: bash prompt update lagging X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 01:54:49 -0000 --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 "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--