hush: Fix quoting
This patch removes adding of an additional \ when doing echo "\"" which gives \" instead of just " I checked in latest busybox hush and this code is still present there, but it behaves correctly in busybox due to some other code pathes I didn't investigate. If this change has any unwanted side effects feel free to flame on me Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
e761b60e25
commit
8d36379153
|
@ -337,7 +337,7 @@ static void b_free(o_string *o)
|
|||
*/
|
||||
static int b_addqchr(o_string *o, int ch, int quote)
|
||||
{
|
||||
if (quote && strchr("*?[\\",ch)) {
|
||||
if (quote && strchr("*?[",ch)) {
|
||||
int rc;
|
||||
rc = b_addchr(o, '\\');
|
||||
if (rc)
|
||||
|
|
Loading…
Reference in New Issue