GNU Rush – a restricted user shell (split by node):   Section:   Chapter:FastBack: Configuration File   Up: Syntax   FastForward: Default Configuration   Contents: Table of ContentsIndex: Concept Index

4.1.1 Notes on Quoted Strings

The syntax of GNU Rush configuration file was designed so as to implement minimum amount of syntactic mark up. Most statements treat their argument as a single value, even if it contains embedded white space. However, leading and trailing whitespace is always removed. Consider, for example, the following statement4:

  match[1] ^/sources/[^ ]+\.git$

Here, the argument is ‘^/sources/[^ ]+\.git$’. Note, that you must not quote it, because quotation marks would be considered part of the argument.

There are, however, statements that take several arguments. In these statements, arguments that contain embedded white space must be quoted. For example, in the statement below5 the second argument is a single space character. It is quoted to prevent it from being treated as a delimiter:

  map[0] /etc/passwd.rush " " ${user} 1 7

Notice also, that arguments to these statements are subject to backslash interpretation (see Table 4.1).

The table below lists all statements that take multiple arguments, with cross references to more in-depth explanations in the body of the manual.

user

See user.

group

See group.

transform pattern expr
transform[n] pattern expr

See transform.

map

See map.

env

See Environment.

regexp

See Regex.

include-security

See include-security.

Footnotes

(4)

See match, for information about match statement.

(5)

See map, for a description of map statement.

GNU Rush – a restricted user shell (split by node):   Section:   Chapter:FastBack: Configuration File   Up: Syntax   FastForward: Default Configuration   Contents: Table of ContentsIndex: Concept Index