Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!amdahl!krs From: krs@amdahl.UUCP (Kris Stephens) Newsgroups: net.unix Subject: KSH PSx won't quote exclamation points Message-ID: <3957@amdahl.UUCP> Date: Wed, 15-Oct-86 19:09:41 EDT Article-I.D.: amdahl.3957 Posted: Wed Oct 15 19:09:41 1986 Date-Received: Thu, 16-Oct-86 00:04:23 EDT Organization: Amdahl Corp, Sunnyvale CA Lines: 23 Keywords: PS1, PS2, PS3 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: PS1='amdahl"!"krs ...' or PS1='amdahl"\!"krs ..." gives amdahl123krs ... or amdahl\123krs ... ---------------------------------------------------------- MYLOC='amdahl!krs' or MYLOC='amdahl\!krs' PS1='$MYLOC ...' PS1='$MYLOC ...' also gives amdahl123krs ... or amdahl\123krs ... ---------------------------------------------------------- How can I get a real printable exclamation into a Prompt String???? Thanks. -- Kris Stephens (408-746-6047) {whatever}!amdahl!krs [The opinions expressed above are mine, solely, and do not ] [necessarily reflect the opinions or policies of Amdahl Corp. ]