9
0
Fork 0

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:
Sascha Hauer 2008-11-10 17:54:15 +01:00
parent e761b60e25
commit 8d36379153
1 changed files with 1 additions and 1 deletions

View File

@ -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)