1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Repaired the pattern matching code which expands command line arguments:

it no longer requires that any parameters are quoted and it is automatically
  enabled if you link against libunix.a, without libc.a standing a chance to
  accidentally override it.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14990 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-06-26 10:23:05 +00:00
parent e293873dc7
commit 3d58795d0f
5 changed files with 33 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: stdlib_arg.c,v 1.6 2005-03-18 12:38:23 obarthel Exp $
* $Id: stdlib_arg.c,v 1.7 2005-06-26 10:23:05 obarthel Exp $
*
* :ts=4
*
@@ -231,9 +231,13 @@ ARG_CONSTRUCTOR(arg_init)
{
char * arg;
/* If necessary, indicate that this parameter was quoted. */
if(__wildcard_quote_parameter(__argc) < 0)
goto out;
#if defined(UNIX_PATH_SEMANTICS)
{
/* If necessary, indicate that this parameter was quoted. */
if(__wildcard_quote_parameter(__argc) < 0)
goto out;
}
#endif /* UNIX_PATH_SEMANTICS */
str++;
@@ -311,10 +315,14 @@ ARG_CONSTRUCTOR(arg_init)
__argv[__argc] = NULL;
/* If necessary, expand wildcard patterns found in the command
line string into file and directory names. */
if(__wildcard_expand_init() < 0)
goto out;
#if defined(UNIX_PATH_SEMANTICS)
{
/* If necessary, expand wildcard patterns found in the command
line string into file and directory names. */
if(__wildcard_expand_init() < 0)
goto out;
}
#endif /* UNIX_PATH_SEMANTICS */
}
else
{