KSH PSx won't quote exclamation points

Bradley S. Brahms brahms at spp5.UUCP
Fri Oct 17 09:07:12 AEST 1986


In article <3957 at amdahl.UUCP> krs at amdahl.UUCP (Kris Stephens) writes:
>In the Korn Shell (ksh), I'm trying to set my PS1 to include my system-
>name and userid as     amdahl!krs     and no matter how I quote the
>exclamation, it gets interpreted as the command process number.  I even
>tried saving the desired string in another variable and just including
>the variable in the PS description.  Samples:

>How can I get a real printable exclamation into a Prompt String????

Try PS1='amdahl!!krs'

It works.

			-- Brad Brahms
			   usenet: {decvax,ucbvax,ihnp4}!trwrb!trwspp!brahms
			   arpa:   Brahms at usc-eclc



More information about the Comp.unix mailing list