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>
Wed, 11 Feb 2015 06:37:01 +0000 (01:37 -0500)
commit594ffed82f4e6ee7da85e9c5da35e32946ae32c9
treeb8063074ad951fe03975e8fa3c4f3bf6bb59025b
parent700e08993c3f6a808773d56424aa7e633da13e2e
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.
src/misc/wordexp.c