summaryrefslogtreecommitdiff
path: root/bin/ksh/ksh.1
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2016-04-27 12:46:24 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2016-04-27 12:46:24 +0000
commit59b6448154166af6015531166a0bc46b7e574f47 (patch)
tree4fd12c7e03126b8678c4fd352fb39a1a2cb74364 /bin/ksh/ksh.1
parent03ca33f6ae36bacdbdee8d4be7b7f30c4b1d920b (diff)
Do not handle echo "`echo \"hi\"`" in POSIX mode differently than in
traditional mode. This aligns ksh's behavior with bash and FreeBSD sh. The interpretation of the POSIX text is disputed, but it is unlikely that a change from the traditional behavior was intended. ok millert@
Diffstat (limited to 'bin/ksh/ksh.1')
-rw-r--r--bin/ksh/ksh.131
1 files changed, 2 insertions, 29 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index d460db9acd1..557b4a0eb0b 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,8 +1,8 @@
-.\" $OpenBSD: ksh.1,v 1.178 2016/03/21 13:35:00 tb Exp $
+.\" $OpenBSD: ksh.1,v 1.179 2016/04/27 12:46:23 naddy Exp $
.\"
.\" Public Domain
.\"
-.Dd $Mdocdate: March 21 2016 $
+.Dd $Mdocdate: April 27 2016 $
.Dt KSH 1
.Os
.Sh NAME
@@ -822,12 +822,6 @@ the
and the newline are stripped; otherwise, both the
.Ql \e
and the character following are unchanged.
-.Pp
-.Sy Note :
-See
-.Sx POSIX mode
-below for a special rule regarding
-differences in quoting when the shell is in POSIX mode.
.Ss Aliases
There are two types of aliases: normal command aliases and tracked aliases.
Command aliases are normally used as a short hand for a long or often used
@@ -2473,27 +2467,6 @@ The following is a list of things that are affected by the state of the
option:
.Bl -bullet
.It
-Occurrences of
-.Ic \e\&"
-inside double quoted
-.Ic `..`
-command substitutions.
-In POSIX mode, the
-.Ic \e\&"
-is interpreted when the command is interpreted;
-in non-POSIX mode,
-the backslash is stripped before the command substitution is interpreted.
-For example,
-.Ic echo \&"`echo \e\&"hi\e\&"`\&"
-produces
-.Dq \&"hi\&"
-in POSIX mode,
-.Dq hi
-in non-POSIX mode.
-To avoid problems, use the
-.Ic $(...)\&
-form of command substitution.
-.It
.Ic kill -l
output.
In POSIX mode, only signal names are listed (in a single line);