![]() | ![]() | |||||||||||||||
| ||||||||||||||||
Bourne Shell Word ExpansionsSparForte provides a subset of Bourne shell features for convenient use on the command line. Many new users are already familiar with the Bourne shell since it's the standard shell for Linux and FreeBSD. Also, the AdaScript syntax can be awkward to use for simple interactive commands. Where the Bourne standard conflicts with Ada SparForte always favors compatibility with Ada for the sake of the progressive development model. Bourne shell arguments consist of groups of characters called "words". Each word is separated by spaces. SparForte does not implement the Bourne shell IFS variable. Argument expansion is the process of performing substitutions on a Bourne shell word. Argument expansion occurs at run-time since it depends on the current working directory and the current value of variables. Bourne shell expansions include:
There is no brace expansion, arithmetic expansion or process substitution. Some features support only a subset of the BASH features. For example, many of the special $ substitutions (${...}, $(...) and others) are not implemented. Otherwise, the basic Bourne shell features implemented in SparForte conform to the POSIX standard. |
Block Statements and Subprograms |
||||||||||||||||||||||||||||||||