freebsd-dev/tools/regression/bin
Jilles Tjoelker 6c38071288 sh: Only accept a '}' inside ${v+-=?...} if double-quote state matches.
If double-quote state does not match, treat the '}' literally.

This ensures double-quote state remains the same before and after a
${v+-=?...} which helps with expand.c.

It makes things like
  ${foo+"\${bar}"}
which I have seen in the wild work as expected.

Exp-run done by:	pav (with some other sh(1) changes)
2010-10-28 22:34:49 +00:00
..
date Use t1 & t2 as more symbolic than 'a' and 'b' for the two times. 2010-01-03 12:17:51 +00:00
mv Hide expected error output so the 'prove -r' results are easy to read. 2010-01-03 09:31:33 +00:00
pax Add a Makefile for tools/regression/bin and support 'all' in 2010-08-29 12:14:53 +00:00
sh sh: Only accept a '}' inside ${v+-=?...} if double-quote state matches. 2010-10-28 22:34:49 +00:00
Makefile Add a Makefile for tools/regression/bin and support 'all' in 2010-08-29 12:14:53 +00:00