On Wed, Oct 29, 2014 at 10:52:30PM +0100, Jilles Tjoelker wrote: > > This implementation of pgetc_eatbnl() does not allow pushing back a > backslash, since that would call pungetc() twice without an intervening > pgetc(). However, some places do attempt to push back a backslash. As a > result, a script file containing many repeated ${w#\#} will not be > parsed correctly. There is a similar bug with repeated $\# but this is > not specified by POSIX. I finally got around to fixing this. I've decided to do things a little differently by making it possible to do two pungetc's in a row. When I get some spare time I would like to make the parser reentrant so we can do PS4 properly and fix some other corner cases. Thanks, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html