| Cobra | Interactive Query Language | requires | ||
|---|---|---|---|---|
| NAMErequires version.number — requires a specific minimal version of CobraSYNTAXrequires version.number DESCRIPTIONThe requires command is typically used at the start of a script, stored in rules file, to make sure that a specific version (or later) of Cobra is installed so that the features used in the script are supported.If an older version of Cobra is used, the script is aborted if executed from a file (for instance loaded with a dot command). If executed interactively from the Cobra command-line, Cobra exits. EXAMPLES$ cat /tmp/goo requires 4.7 $ cobra *.c 1 core, 14 files, 93764 tokens : . /tmp/goo error: requires Cobra version 4.7 -- have 4.5 # aborts script : requires 4.7 error: requires Cobra version 4.7 -- have 4.5 # exits $ | ||||
| Return to index Manual Tutorial | (Last Updated: 21 August 2023) | |||