GNU Rush |
|
Restricted User Shell |
Sergey Poznyakoff |
The ‘set’ transformation replaces the entire command line, or any of its arguments, with the given value.
Command line is replaced with the expansion of pattern (see patterns). E.g.:
set /bin/echo "Command forbidden: ${command}"
As another example, the following rule uses set
to
ensure that /usr/bin/cvs binary is used:
rule cvs command ^cvs server set[0] /usr/bin/cvs
Replace nth argument with the expansion of pattern. Notice, that square brackets are part of the statement syntax.
See indexing, for a description of n. See patterns, for a description of pattern. E.g.:
set[0] /bin/echo
This document was generated on June 29, 2019 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.