UNIX prompts (-ksh)

Blair P. Houghton bph at buengc.BU.EDU
Mon Mar 27 03:50:15 AEST 1989


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> '
>
>seems to work everywhere.  On about half the machines I visit, if you
>try this you get a literal prompt of $PWD> -- i.e., the string isn't
>interpreted before display.  I have never been too scientific about why
>this is, since it's not all that important to me, but I think most of
>the trouble has been on BSD implementations of ksh.  Perhaps there's
>something in the BSD port that broke this.

I don't know ksh, but all the other shells I've seen use single-quotes
to protect against variable substitution...

				--Blair
				  '$WITTICISM'
				  "Oops."



More information about the Comp.unix.questions mailing list