From 4e7244e6b2b8b941f6d2b03d2ca9cc2afbb5258e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 14 Mar 2001 00:49:52 +0000 Subject: libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDE -Erik --- sh.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sh.c') diff --git a/sh.c b/sh.c index dcec14aba..3c52e2a28 100644 --- a/sh.c +++ b/sh.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) */ -- cgit v1.2.3-55-g6feb