OSDN Git Service

ash: fix handling of Unicode chars in redirects. Fixes bug 585
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 29 Aug 2009 18:24:12 +0000 (20:24 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 29 Aug 2009 18:24:12 +0000 (20:24 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index f9c89f1..1690c46 100644 (file)
@@ -5817,7 +5817,7 @@ argstr(char *p, int flag, struct strlist *var_str_list)
        };
        const char *reject = spclchars;
        int c;
-       int quotes = flag & (EXP_FULL | EXP_CASE);      /* do CTLESC */
+       int quotes = flag & (EXP_FULL | EXP_CASE | EXP_REDIR); /* do CTLESC */
        int breakall = flag & EXP_WORD;
        int inquotes;
        size_t length;