mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- If defined, the local environment variable "DISABLE_COMMANDLINE_WILDCARD_EXPANSION"
will disable expansion of wildcard patterns passed on the command line. Note that if the variable is not set then the global variable '__expand_wildcard_args' will provide the defaults for the switch that controls whether the wildcard expansion takes place. And after the environment variable has been checked, the '__expand_wildcard_args_check' function pointer can still be used to override the switch. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15141 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdlib_arg.c,v 1.12 2006-09-15 06:58:16 obarthel Exp $
|
||||
* $Id: stdlib_arg.c,v 1.13 2006-09-22 07:54:25 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -135,6 +135,9 @@ ARG_CONSTRUCTOR(arg_init)
|
||||
{
|
||||
expand_wildcard_args = __expand_wildcard_args;
|
||||
|
||||
if(FindVar("DISABLE_COMMANDLINE_WILDCARD_EXPANSION",LV_VAR) != NULL)
|
||||
expand_wildcard_args = FALSE;
|
||||
|
||||
if(__expand_wildcard_args_check != NULL)
|
||||
expand_wildcard_args = (*__expand_wildcard_args_check)();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user