Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!topaz!cord!ebh From: ebh@cord.UUCP (Ed Horch) Newsgroups: net.unix Subject: Re: KSH PSx won't quote exclamation points Message-ID: <369@cord.UUCP> Date: Fri, 17-Oct-86 11:07:54 EDT Article-I.D.: cord.369 Posted: Fri Oct 17 11:07:54 1986 Date-Received: Fri, 17-Oct-86 22:48:29 EDT References: <3957@amdahl.UUCP> Reply-To: ebh@cord.UUCP (Ed Horch) Organization: AT&T Bell Laboratories, Liberty Corner Lines: 16 Keywords: PS1, PS2, PS3 In article <3957@amdahl.UUCP> krs@amdahl.UUCP 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. Do this: PS1="amdahl!!krs " # TWO !'s The extra space at the end makes long prompts easier on the eye. If you don't want it, you don't need the "'s. The two-! feature is (to the best of my knowledge) undocumented. It was a lucky guess on my part. Any comments, Dave (congrats on the DMTS)? -Ed Horch ihnp4!cord!ebh