Modified the startup behavior so that if a ".tcl" script file is

presented on the command line, then all following arguments are
assumed to be arguments of the script and not additional input
to be processed by magic.  This allows arguments to be passed to
scripts passed to magic on the command line.
This commit is contained in:
Tim Edwards 2021-07-08 16:03:05 -04:00
parent 3b70c95013
commit 355399d3ef
2 changed files with 10 additions and 1 deletions

View File

@ -1 +1 @@
8.3.184
8.3.185

View File

@ -413,7 +413,16 @@ mainDoArgs(argc, argv)
#endif
#ifdef MAGIC_WRAPPER
if (!strcasecmp(c, ".tcl"))
{
CurrentName->fn_type = FN_TCL_SCRIPT;
/* Behavior: If a .tcl file is passed on the
* command line, then all following arguments
* are assumed to be arguments of the script,
* and not to be processed as additional
* input file types.
*/
break;
}
#endif
}
}