On Fri, Sep 02, 2016 at 04:16:31PM +0200, Jilles Tjoelker wrote: > > Unlike Harald van Dijk's patch, the above patch breaks \c. Per POSIX > (XSI option), \c shall cause all characters following it in the > arguments to be ignored (so not only in the argument where \c occurs). > For example: > echo 'a\cb' c; echo d > shall write "ad" followed by a newline. Works for me: $ build/src/dash -c "echo 'a\cb' c; echo d" ad $ AFAICS my patch doesn't change \c handling at all. When we hit \c print_escape_str will return 0x100, which guarantees that we hit the berak. 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