Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!occrsh!occrsh.ATT.COM!rjd From: rjd@occrsh.ATT.COM Newsgroups: comp.unix.wizards Subject: Re: The whole prompt string thing ( Message-ID: <142700018@occrsh.ATT.COM> Date: 7 Dec 87 16:36:00 GMT References: <2368@emory.uucp> Lines: 25 Nf-ID: #R:emory.uucp:-236800:occrsh.ATT.COM:142700018:000:753 Nf-From: occrsh.ATT.COM!rjd Dec 7 10:36:00 1987 > > Recompile and reinstall the shell. Then, in your .profile you > > can say > > > > PS1='`pwd`> ' > > In all cases, for BSD /bin/sh or S5R[23] /bin/sh, you have to modify the > > code to get the result. Ksh already does things this way, so if you > > have ksh it's not a problem. > > Doesn't work for my ksh..... All I get is: > > # PS1='`pwd` >' > `pwd` > Here we go, writing a response to my own note. After posting this, I received mail from quetzal!rcw suggesting I try this: PS1="\$PWD > " ; export PS1 Well, what do you know. IT WORKS!! (at least for ksh.) I thought I tried it, knowing that ksh has a readonly PWD variable (readonly to the user) that always reflects the present working directory. (thanks - quetzal!rcw) Randy