NetBSD/bin
apb 3f6e3bc032 In foo="`echo \"hi\"`", the backslashes should be removed by the outer
double quotes, not seen by the inner backquotes.  Previously, ksh(1)
handled this correctly in non-posix mode but incorrectly in posix mode.

The previous comments in src/bin/ksh/lex.c quote parts of some version
of the POSIX specification.  The version of POSIX being quoted is not
identified, but the wording is very similar to that in SUSv3
<http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html>.

It seems clear that the words "having escape characters removed"
mean, in that context, that the backslash before the double quote in
"...`...\"...`..." is removed as part of the handling of the outer
double quotes, so that the backslash is not present when the inner
backquotes are handled.  The new code in this commit follows this
interpretation.  The previous code followed a different interpretation
which is now believed to be incorrect.

Discussed in tech-userlevel.  Closes PR 26493.
2008-10-27 19:52:28 +00:00
..
cat Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
chio Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
chmod Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
cp Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
csh Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
date Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
dd Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
df Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
domainname Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
echo Check ferror(stdout) and exit(1) if there's been a problem. 2008-09-18 05:42:08 +00:00
ed Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
expr Normalize TNF license, move to 2 clause. 2008-04-30 13:39:13 +00:00
hostname Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
kill Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
ksh In foo="`echo \"hi\"`", the backslashes should be removed by the outer 2008-10-27 19:52:28 +00:00
ln Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
ls Change '-n' so that it implies '-l' rather than requires '-l'. 2008-09-25 23:44:05 +00:00
mkdir Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
mt Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
mv Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
pax Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
ps Improve wording. 2008-10-19 17:04:49 +00:00
pwd Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
rcmd convert the rest of my licenses to 2-clause, extracting myself out 2008-05-30 02:29:37 +00:00
rcp Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
rm Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
rmdir Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
sh Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build. 2008-10-25 22:23:55 +00:00
sleep Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
stty Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
sync Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
test bin/39446: Aleksey Cheusov: always produce errors on empty numbers. 2008-09-10 19:00:51 +00:00
Makefile Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
Makefile.inc