"!" in KSH prompt
Paul Chamberlain
tif at doorstop.austin.ibm.com
Fri Jul 27 08:35:50 AEST 1990
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 at doorstop, sc30661 at ausvm6
512/838-7008 | ...!cs.utexas.edu!ibmaus!auschs!doorstop.austin.ibm.com!tif
More information about the Comp.unix.questions
mailing list