libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDE

-Erik
This commit is contained in:
Eric Andersen 2001-03-14 00:49:52 +00:00
parent 8658816f71
commit 4e7244e6b2
3 changed files with 24 additions and 3 deletions

9
lash.c
View File

@ -1010,7 +1010,14 @@ static int expand_arguments(char *command)
* (char*) into cmd (char**, one word per string) */ * (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; char *tmpcmd, *cmd, *cmd_copy;
/* We need a clean copy, so strsep can mess up the copy while /* We need a clean copy, so strsep can mess up the copy while
* we write stuff into the original (in a minute) */ * we write stuff into the original (in a minute) */

9
sh.c
View File

@ -1010,7 +1010,14 @@ static int expand_arguments(char *command)
* (char*) into cmd (char**, one word per string) */ * (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; char *tmpcmd, *cmd, *cmd_copy;
/* We need a clean copy, so strsep can mess up the copy while /* We need a clean copy, so strsep can mess up the copy while
* we write stuff into the original (in a minute) */ * we write stuff into the original (in a minute) */

View File

@ -1010,7 +1010,14 @@ static int expand_arguments(char *command)
* (char*) into cmd (char**, one word per string) */ * (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; char *tmpcmd, *cmd, *cmd_copy;
/* We need a clean copy, so strsep can mess up the copy while /* We need a clean copy, so strsep can mess up the copy while
* we write stuff into the original (in a minute) */ * we write stuff into the original (in a minute) */