UNIX prompts (-ksh)
Dik T. Winter
dik at cwi.nl
Mon Mar 27 22:53:22 AEST 1989
In article <4549 at vpk4.UUCP> hjespers at attcan.UUCP (Hans Jespersen) writes:
> In article <2391 at buengc.BU.EDU> bph at buengc.bu.edu (Blair P. Houghton) writes:
> >In article <11080 at well.UUCP> tneff at 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 at cwi.nl
BITNET/EARN: dik at mcvax
More information about the Comp.unix.questions
mailing list