summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2006-05-30 14:43:46 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2006-05-30 14:43:46 +0000
commit3d83adb2c19c9057e887dc52e143775d1939d725 (patch)
tree05380adf5f97048c29e3547a656cae1e6e370639
parentaac93bcecde57a8566ddbcc94acf984e8b4da13f (diff)
document some advice when \$ is part of your prompt;
from otto and myself
-rw-r--r--bin/ksh/ksh.17
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index 7c43779fc8d..31779d44ce4 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1,v 1.113 2006/05/29 18:22:24 otto Exp $
+.\" $OpenBSD: ksh.1,v 1.114 2006/05/30 14:43:45 jmc Exp $
.\"
.\" Public Domain
.\"
@@ -1646,6 +1646,11 @@ The default prompt i.e.\&
if the effective UID is 0,
otherwise
.Sq $ \& .
+Since the shell interprets
+.Sq $
+as a special character within double quotes,
+it is safer in this case to escape the backslash
+than to try quoting it.
.It Li \e Ns Ar nnn
The octal character
.Ar nnn .