libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDE
-Erik
diff --git a/sh.c b/sh.c
index dcec14a..3c52e2a 100644
--- a/sh.c
+++ b/sh.c
@@ -1010,7 +1010,14 @@
* (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) */