GNU Rush legacy configuration syntax (split by node):   Section:   Chapter:FastBack: Syntax   Up: Syntax   FastForward: Rule   Contents: Table of ContentsIndex: Concept Index

2.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 statement2:

  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 below3 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 2.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

(2)

See match, for information about match statement.

(3)

See map, for a description of map statement.

GNU Rush legacy configuration syntax (split by node):   Section:   Chapter:FastBack: Syntax   Up: Syntax   FastForward: Rule   Contents: Table of ContentsIndex: Concept Index