Path: utzoo!vpk4!hjespers From: hjespers@vpk4.UUCP (Hans Jespersen) Newsgroups: comp.unix.questions Subject: Re: UNIX prompts (-ksh) Message-ID: <4609@vpk4.UUCP> Date: 27 Mar 89 19:21:35 GMT References: <18805@adm.BRL.MIL> <11080@well.UUCP> <2391@buengc.BU.EDU> <4549@vpk4.UUCP> <4896@pbhyf.PacBell.COM> Reply-To: hjespers@attcan.UUCP (Hans Jespersen) Organization: AT&T Canada Inc., Toronto Lines: 30 In article <4896@pbhyf.PacBell.COM> rob@PacBell.COM (Rob Bernardo) writes: >In article <4549@vpk4.UUCP> hjespers@attcan.UUCP (Hans Jespersen) writes: >>Absolutely correct. I think Tom ment >> export PS1=`$PWD> ` >Absolutely wrong. :-) The above will set PS1 to be your current working >directory ***at the time it was set***. It will not change from command >to command no matter how much you "cd". On the other hand, the following: > export PS1='$PWD> ' Opps. I guess I just made an _Absolute_ fool of myself. The correct version is of course (export PS1='$PWD> ') or (export PS1="$PWD> "). You see my .kshrc has (export PS1=`uname`'$PWD> ') and unlike pwd uname generally never changes ;-) My apologies for confusing the issue, it's just that I've seen this topic go by so many times that I don't give it any thought anymore. BTW. Is anyone working on a monthly/bi-weekly posting of "answers to most frequently asked questions". If not, I will gladly volunteer (and I promise to get it right this time ;-) -- Hans Jespersen UUCP: uunet!attcan!hjespers AT&T Canada Inc. or ..!attcan!nebulus!arakis!hans Toronto, Ontario #include "Yabba Dabba Doo" -- F. Flintstone