]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r216496: sh: Fix corruption of command substitutions with special chars
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 5 Feb 2011 21:24:37 +0000 (21:24 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 5 Feb 2011 21:24:37 +0000 (21:24 +0000)
commit0d31c00c05536337a4c32ac2f6d38e6c74d93df3
treeb590f57596e19afef24173e2a625a0fbe4ca1b20
parent99e9c1cf5f8d8223c97368404e177b5ec02e8307
MFC r216496: sh: Fix corruption of command substitutions with special chars
after newline.

The CTLESC byte to protect a special character was output before instead of
after a newline directly preceding the special character.

The special handling of newlines is because command substitutions discard
all trailing newlines.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/expand.c
tools/regression/bin/sh/expansion/cmdsubst3.0 [new file with mode: 0644]