The input lines read from a script are processed in the following way:
The resulting lines either contain a control flow statement or they call some command. If the line starts with the keyword of a control flow statement, the rest of the line is split into words. These words are arguments to the control flow statement.
keyword words
A command specifier may be one of the following:
/). Try
? or help to list these commands. Commands can be abbreviated. Each
syllable (separated by dashes) of a command name can be abbreviated separately.
For example, abbreviations of the command "/list-vars" are: "/list-v", "/l-vars", or "/l-v". If the
abbreviation is ambiguous, an error will be generated.? or help to list these commands.${path} variable.
The path variable contains a semicolon separated list of directories.${path} variable.White space splits a line into words. Strings enclosed in "..." and '...' become part of words. Characters with special meaning can be quoted using a backslash in strings. The backslash is removed only if applied to special characters. In other cases the character sequence remains unchanged.
Labels and control flow keyword's are not subject to variable evaluation. In strings enclosed in single quotes (''), variables are not evaluated. All other words may contain variable references.
Examples:
/set-var x1 Hello
/set-var x2 ${abc} x2 has value "Hello"
/set-var x2 "${abc} ${abc}" x2 has value "Hello Hello"
/set-var x2 '${abc}'"${abc}" x2 has value "${abc}Hello"
/echo '\$\'\"' "\$\\\"" prints the following: \$'\"$\"
Related information