applyinf fix for:
authorpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 20 Jul 2005 18:33:12 +0000 (18:33 +0000)
committerpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 20 Jul 2005 18:33:12 +0000 (18:33 +0000)
    0000155: variable expansion with braces in backticks in msh

git-svn-id: svn://busybox.net/trunk/busybox@10876 69ca8d6d-28ef-0310-b511-8ec308f3f277

shell/msh.c

index 2fb0df7..14e8758 100644 (file)
@@ -4290,7 +4290,7 @@ int quoted;
                        }
 
                        var_name[var_index++] = *src++;
-                       while (isalnum(*src))
+                       while (isalnum(*src) || *src=='_')
                                var_name[var_index++] = *src++;
                        var_name[var_index] = 0;