aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-14 00:49:52 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-14 00:49:52 +0000
commit7306ffd15e79b44d9fb1a0aa6c97e46ac49befab (patch)
tree6cbf0123fc92c2552e8e1e36e3e2e2e3a2fe5840 /sh.c
parentdfee65f5b94b10d099f993c123543c56e8b3b2f5 (diff)
downloadbusybox-w32-7306ffd15e79b44d9fb1a0aa6c97e46ac49befab.tar.gz
busybox-w32-7306ffd15e79b44d9fb1a0aa6c97e46ac49befab.tar.bz2
busybox-w32-7306ffd15e79b44d9fb1a0aa6c97e46ac49befab.zip
libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDE
-Erik git-svn-id: svn://busybox.net/trunk/busybox@2063 69ca8d6d-28ef-0310-b511-8ec308f3f277
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) */