Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!dik From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.unix.questions Subject: Re: UNIX prompts (-ksh) Message-ID: <7975@boring.cwi.nl> Date: 27 Mar 89 12:53:22 GMT References: <18805@adm.BRL.MIL> <11080@well.UUCP> <2391@buengc.BU.EDU> <4549@vpk4.UUCP> Organization: CWI, Amsterdam Lines: 18 In article <4549@vpk4.UUCP> hjespers@attcan.UUCP (Hans Jespersen) writes: > In article <2391@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: > >In article <11080@well.UUCP> tneff@well.UUCP (Tom Neff) writes: > >>Actually not even the classic Korn shell solution of > >> > >> export PS1='$PWD> ' > >I don't know ksh, but all the other shells I've seen use single-quotes > >to protect against variable substitution... Same for ksh. > Absolutely correct. I think Tom ment > export PS1=`$PWD> ` > ^ ^ No. The contents of PS1 must be $PWD> and it will be evaluated when doing the prompt. This is of course very ksh specific. -- dik t. winter, cwi, amsterdam, nederland INTERNET : dik@cwi.nl BITNET/EARN: dik@mcvax