Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (Paul Chamberlain) Newsgroups: comp.unix.questions Subject: "!" in KSH prompt Message-ID: <2940@awdprime.UUCP> Date: 26 Jul 90 22:35:50 GMT Sender: news@awdprime.UUCP Reply-To: tif@doorstop.austin.ibm.com (Paul Chamberlain) Organization: IBM AWD, Austin, TX Lines: 13 References: Does anyone know the trick to getting an unexpanded "!" in a KSH prompt? I've tried back-slashing, quoting, and temporary variables. It doesn't seem to matter what I do, it expands it to the current command number. I like to have my prompt hi-lighted so I embed a "`tputs smso`...`tputs rmso`" in my PS1 but one of my terminals has a "!" in the necessary escape sequence. This has very undesirable results. It's conceivable that different versions could differ in this respect since my ksh does not handle the PS1='$(date)' type of thing. Any ideas??? Paul Chamberlain | I do NOT represent IBM tif@doorstop, sc30661@ausvm6 512/838-7008 | ...!cs.utexas.edu!ibmaus!auschs!doorstop.austin.ibm.com!tif