diff options
-rw-r--r-- | lash.c | 9 | ||||
-rw-r--r-- | sh.c | 9 | ||||
-rw-r--r-- | shell/lash.c | 9 |
3 files changed, 24 insertions, 3 deletions
@@ -1010,7 +1010,14 @@ static int expand_arguments(char *command) * (char*) into cmd (char**, one word per string) */ { - int flags = GLOB_NOCHECK|GLOB_BRACE|GLOB_TILDE; + int flags = GLOB_NOCHECK +#ifdef GLOB_BRACE + | GLOB_BRACE +#endif +#ifdef GLOB_TILDE + | GLOB_TILDE +#endif + ; char *tmpcmd, *cmd, *cmd_copy; /* We need a clean copy, so strsep can mess up the copy while * we write stuff into the original (in a minute) */ @@ -1010,7 +1010,14 @@ static int expand_arguments(char *command) * (char*) into cmd (char**, one word per string) */ { - int flags = GLOB_NOCHECK|GLOB_BRACE|GLOB_TILDE; + int flags = GLOB_NOCHECK +#ifdef GLOB_BRACE + | GLOB_BRACE +#endif +#ifdef GLOB_TILDE + | GLOB_TILDE +#endif + ; char *tmpcmd, *cmd, *cmd_copy; /* We need a clean copy, so strsep can mess up the copy while * we write stuff into the original (in a minute) */ diff --git a/shell/lash.c b/shell/lash.c index dcec14a..3c52e2a 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -1010,7 +1010,14 @@ static int expand_arguments(char *command) * (char*) into cmd (char**, one word per string) */ { - int flags = GLOB_NOCHECK|GLOB_BRACE|GLOB_TILDE; + int flags = GLOB_NOCHECK +#ifdef GLOB_BRACE + | GLOB_BRACE +#endif +#ifdef GLOB_TILDE + | GLOB_TILDE +#endif + ; char *tmpcmd, *cmd, *cmd_copy; /* We need a clean copy, so strsep can mess up the copy while * we write stuff into the original (in a minute) */ |