> I am using opensolaris 2009.06 > > In bash I have the prompt set to display the current directory and when I > go back to my home directory I expect it to replace it with ~. The tilde > is there when I first bring up a shell but if I navigate away from my home > directory and then go back it doesn't replace the path with the tilde. Any > ideas what the problem is here? is this a bash bug or some config problem? > > bash version: > GNU bash, version 3.2.25(1)-release (i386-pc-solaris2.11) > Copyright (C) 2005 Free Software Foundation, Inc. > > prompt variable: > PS1='[...@\h \W]\$ '
I just tried that on Solaris 8 and it works as expected : $ cd $ /opt/csw/bin/bash --version GNU bash, version 4.0.28(1)-release (i386-pc-solaris2.8) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ /opt/csw/bin/bash bash-4.0$ PS1='[...@\h \W]\$ ' [dcla...@titan ~]$ cd /tmp [dcla...@titan tmp]$ cd [dcla...@titan ~]$ cd /export/nfs [dcla...@titan nfs]$ uname -a SunOS titan 5.8 Generic_127722-02 i86pc i386 i86pc On a recent OpenSolaris release it seems to work fine also $ uname -a SunOS opensolaris 5.11 snv_111b i86pc i386 i86pc Solaris $ bash --version GNU bash, version 3.2.25(1)-release (i386-pc-solaris2.11) Copyright (C) 2005 Free Software Foundation, Inc. $ bash j...@opensolaris:~$ PS1='[...@\h \W]\$ ' [j...@opensolaris ~]$ [j...@opensolaris ~]$ cd /tmp [j...@opensolaris tmp]$ cd /mnt [j...@opensolaris mnt]$ cd [j...@opensolaris ~]$ [j...@opensolaris ~]$ exit exit Not too sure how you are getting that result. What rev of bash do you have ? Dennis _______________________________________________ opensolaris-discuss mailing list [email protected]
