Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.unix.questions Subject: Re: Prompt for ksh Message-ID: <1462@crdos1.crd.ge.COM> Date: 25 Oct 89 16:17:40 GMT References: <3028@jhunix.HCF.JHU.EDU> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: GE Corp R&D Center Lines: 15 You have to escape the $ so it's evaluated at display time. PS1='$PWD> ' My personal favorite is: PS!='${PWD#$HOME/}> ' which displays subdirectory only in my login directory, but full pathname elsewhere. Nice to have on the screen if you are ready to do "rm *" -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon