The following parameter, when fed to a REXX program (or a batch program) is interpreted and "eaten" by the command interpreter CMD.EXE (see also Parameters eaten by the REXX interpreter):
Important: The parameter /Q is always interpreted by the CMD.EXE. It is never seen by the REXX program. This is also true for any parameter beginning with /Q (or /q). Therefore, if you call a REXX program with the parameter '/QUIET' it will only see 'UIET' as parameter!
To avoid this limitation for parameters beginning with /Q you can call the program with the parameter in double quotes--e.g., myProgram "/QUIET". But be aware that in this case the CMD will also pass the double quotes to your program!
---------- * ----------
Another workaround:
Simply use the parameter /Q twice. Example:
D:\Test> test2.cmd test /q 3 *-* parse arg thisargs >>> "test " D:\Test> test2.cmd test /q /q 3 *-* parse arg thisargs >>> "test /q" D:\Test> test2.cmd test /q/quiet 3 *-* parse arg thisargs >>> "test /quiet"
Source: Barry Lemon (see EMail Addresses)
---------- * ----------
Please note that other command line interpreter, such as 4OS2, for instance, may or may not have the limitation mentioned above.