diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-05-30 14:43:46 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-05-30 14:43:46 +0000 |
commit | 3d83adb2c19c9057e887dc52e143775d1939d725 (patch) | |
tree | 05380adf5f97048c29e3547a656cae1e6e370639 | |
parent | aac93bcecde57a8566ddbcc94acf984e8b4da13f (diff) |
document some advice when \$ is part of your prompt;
from otto and myself
-rw-r--r-- | bin/ksh/ksh.1 | 7 |
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 . |