mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDE
-Erik
This commit is contained in:
parent
8658816f71
commit
4e7244e6b2
9
lash.c
9
lash.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) */
|
||||
|
9
sh.c
9
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) */
|
||||
|
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user