Raphael Geissert wrote, 2008-03-18 01:44:
Adam D. Barratt wrote:
[...]
&& $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
Any suggestions as to how to resolve that welcome :-) The only
solution I've come up with thus far is fudging the regex to allow
&s, but I'd rather have the false positives than do that. :-/
Can't that be handled by the quotes-handling part of checkbashisms?
I really haven't looked at that part of the code, but my guess is
that it should be 'fairly trivial' to fix at that part rather than
modifying
the check's regex.
The quotes parser should understand it as '[]~#^*{};<>?"', "'", '
&()|`$[]'
This should now be fixed in r1168.
There isn't a "quotes parser" as such, just "remove stuff in single quotes"
and "remove stuff in double quotes". I've added an initial "remove quoted
quotes" step (actually two, one for "'" and one for '"') which reduces the
expression to
&& $echo "X$libobj" | grep '[]~#^*{};<>? &()|`$[]' \
at which point the single quoted argument removal code just works[tm]
Adam
--
To unsubscribe, send mail to [EMAIL PROTECTED]