Release RMC-06.02
(2024-04-29)
|
DescriptionGBS is controlled by command-lines in an X-term or DOS-box. Here is the general behaviour of the commands:Entering CommandsIn general:
--inc=filespec will redirect the reading of the command-line arguments to a file. Command SyntaxAll commands have the format: command [ positional-arg | gbs-option | gbs-env-setting ]...positional-argPositional arguments are specified in this document as <1>, <2>, <3><*> specifies: Remaining (or all if none other specified) gbs-optionAll gbs-options start with --Boolean type--opt and --opt+ specify value 1--opt- Specifies value 0 String typeAlphanumeric valuesSpecify: --opt=value Specify: --opt="value-with-spaces" Specify: --opt='value-with-spaces' Integer typeOnly numbers allowedSpecify: --opt=num-value Time typeDelta (+) and Absolute (=). Default is Absolute (=)Syntax: [+|=][[H]H:][M]M Specify Delta: --opt=+HH:MM Specify Absolute--opt=HH:MM Array qualifierAllows specification of multiple values separated by ',' (comma)gbs-env-settingBy specifying GBS_env-name=value some specific GBS Environment Variables may be given a different value for the duration of the command execution.The GBS_ prefix may be omitted. Wildcards (globbing)Wildcards (* and ?) behave in Windows the same as on Linux (UNIX-style).This means that wild-card expansion is performed immediately on the current directory. If no match is found, the string will remain as-is. Inserting space charactersThe command-line works with elements separated by white-space.Sometimes there is a need to embed spaces in line-elements. E.g.: -DTEXT=STATUS QUO Placing an element between "" or ' ' may not always work. The GBS-commands will replace all occurrences of %_ (Linux), $_ (Windows) and %20 (all) in the command-line by one space. E.g.: -DTEXT=STATUS%_QUO ⇒ "STATUS QUO" PromptsIn a prompt, possible values are embedded in parenthesise.g.: GBS: Are you sure? (y/n):
In a prompt, the default value is embedded in square brackets e.g.: GBS: Are you sure? (y/n)[y]: Breaking off during promptEntering a single '!' will quit the script.This is safer than the usual CTRL-C. All commands can be safely terminated by entering '!' at any prompt. No action will be performed. 'Help' during promptEntering a single '?' will give you some additional information on the prompt.Not always and not excessive. 'Forms'Lines beginning with a '|' (vertical bar) are grouped in a 'form' with an 'OK?' question at the end. (N will repeat the questions, E will Cancel)MessagesAll messages generated by GBS are prefixed by the name of the file generating the message in uppercase.This distinguishes messages generated by GBS from those generated by the OS and/or called application(s). |