aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-14 00:49:52 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-14 00:49:52 +0000
commit4e7244e6b2b8b941f6d2b03d2ca9cc2afbb5258e (patch)
tree6cbf0123fc92c2552e8e1e36e3e2e2e3a2fe5840 /sh.c
parent8658816f719047fc723639e9f0a13352367dcf48 (diff)
downloadbusybox-w32-4e7244e6b2b8b941f6d2b03d2ca9cc2afbb5258e.tar.gz
busybox-w32-4e7244e6b2b8b941f6d2b03d2ca9cc2afbb5258e.tar.bz2
busybox-w32-4e7244e6b2b8b941f6d2b03d2ca9cc2afbb5258e.zip
libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDE
-Erik
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c9
1 files changed, 8 insertions, 1 deletions
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)
1010 * (char*) into cmd (char**, one word per string) */ 1010 * (char*) into cmd (char**, one word per string) */
1011 { 1011 {
1012 1012
1013 int flags = GLOB_NOCHECK|GLOB_BRACE|GLOB_TILDE; 1013 int flags = GLOB_NOCHECK
1014#ifdef GLOB_BRACE
1015 | GLOB_BRACE
1016#endif
1017#ifdef GLOB_TILDE
1018 | GLOB_TILDE
1019#endif
1020 ;
1014 char *tmpcmd, *cmd, *cmd_copy; 1021 char *tmpcmd, *cmd, *cmd_copy;
1015 /* We need a clean copy, so strsep can mess up the copy while 1022 /* We need a clean copy, so strsep can mess up the copy while
1016 * we write stuff into the original (in a minute) */ 1023 * we write stuff into the original (in a minute) */