hush: add <> and () as "safe" arith chars
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 6 Apr 2009 12:09:55 +0000 (12:09 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 6 Apr 2009 12:09:55 +0000 (12:09 -0000)
shell/hush.c

index bad2c804437d9a804104c07da70f2c16a89ad24d..3aae7d7c11c36b9da62345c92174e745499d7951 100644 (file)
@@ -1791,7 +1791,7 @@ static int expand_vars_to_list(o_string *output, int n, char *arg, char or_mask)
                                }
                                if (isdigit(c))
                                        continue;
-                               if (strchr(" \t+-*/%_", c) != NULL)
+                               if (strchr(" \t+-*/%<>()_", c) != NULL)
                                        continue;
                                c |= 0x20; /* tolower */
                                if (c >= 'a' && c <= 'z')