fix bad character checking in wordexp
authorRich Felker <dalias@aerifal.cx>
Wed, 11 Feb 2015 06:37:01 +0000 (01:37 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 30 Mar 2015 05:45:20 +0000 (01:45 -0400)
commite2063ac08b6d7a9b7049e41a399e639b738a6510
tree399d175e8be8c04259b60af07969428e4b710049
parentf035f7d9711cb815709802f453c78ac0c611e882
fix bad character checking in wordexp

the character sequence '$((' was incorrectly interpreted as the
opening of arithmetic even within single-quoted contexts, thereby
suppressing the checks for bad characters after the closing quote.

presently bad character checking is only performed when the WRDE_NOCMD
is used; this patch only corrects checking in that case.

(cherry picked from commit 594ffed82f4e6ee7da85e9c5da35e32946ae32c9)
src/misc/wordexp.c