summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2006-05-30 14:43:45 +0000
committerjmc <jmc@openbsd.org>2006-05-30 14:43:45 +0000
commitae96433400777fab17b0531b67b01672a630ffb2 (patch)
treec4f594bf3a0bcee1fc757640a7b3f11e65b1b548
parentSync usage() with man page and reality. (diff)
downloadwireguard-openbsd-ae96433400777fab17b0531b67b01672a630ffb2.tar.xz
wireguard-openbsd-ae96433400777fab17b0531b67b01672a630ffb2.zip
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 .