freebsd-dev/bin
Jilles Tjoelker 8999a290ab sh: Fix executing wrong command with ${unsetvar#$(cmdsubst)}$(cmdsubst).
The parsed internal representation of words consists of a byte string with a
list of nodes (commands in command substitution). Each unescaped CTLBACKQ or
CTLBACKQ | CTLQUOTE byte corresponds to an entry in the list.

If param in ${param#%##%%word} is not set, the word is not expanded (in a
deviation of POSIX shared with other ash variants and ksh93). Erroneously,
the pointer in the list of commands (argbackq) was not advanced. This caused
the wrong command to be executed later if the outer word contained another
command substitution.

Example:
  echo "${unsetvar#$(echo a)}$(echo b)"
wrote "a" but should write "b".

MFC after:	1 week
2017-03-10 16:04:00 +00:00
..
cat Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
chflags Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
chio
chmod Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cp Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
csh bin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:31:08 +00:00
date Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dd Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
df bin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:31:08 +00:00
domainname Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
echo Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ed Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
expr
freebsd-version bin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:31:08 +00:00
getfacl
hostname Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kenv
kill Don't kill pid -1 on overflow from strtol(3). 2017-03-05 21:56:04 +00:00
ln Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ls Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mkdir Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mv Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pax Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pkill Convert absolute links to relative links. 2017-03-07 05:10:38 +00:00
ps ps(1): Fix -w + UNLIMITED handling 2017-03-07 04:51:35 +00:00
pwait Rename some tests to end in _test. 2017-03-09 04:20:00 +00:00
pwd Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rcp Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
realpath Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rm Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rmail bin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:31:08 +00:00
rmdir Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
setfacl
sh sh: Fix executing wrong command with ${unsetvar#$(cmdsubst)}$(cmdsubst). 2017-03-10 16:04:00 +00:00
sleep Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
stty Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sync Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
test Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tests
uuidgen
Makefile
Makefile.inc