diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-09-03 13:15:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-09-03 13:15:22 +0200 |
commit | 3afb272f26e300ebb6819900aa5ac93333f7bf58 (patch) | |
tree | f6b7b0ce4bfd1745bfcd79b05a9c68a7ddf7d66a | |
parent | cafa730ce5e1b13135ccbdc0befa58d693302999 (diff) |
Update to match new pre-formatter fragment escape semantics in CLI
-rw-r--r-- | doc/testscript.cli | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli index b7e89f1..deeba89 100644 --- a/doc/testscript.cli +++ b/doc/testscript.cli @@ -1156,7 +1156,7 @@ escaped with a backslash (\c{\\}) to preserve their literal meaning (to specify literal backslash you need to escape it as well). For example: \ -foo = \$foo\\bar # '$foo\bar' +foo = \$foo\\\\bar # '$foo\bar' \ Note that quoting could often be a more readable way to achieve the same @@ -1295,7 +1295,7 @@ echo $args # echo foo To preserve quotes in this context we need to escape them: \ -args = \"\\'foo\\'\" # \'foo\' +args = \"\\\\'foo\\\\'\" # \'foo\' echo $args # echo 'foo' \ @@ -1729,7 +1729,7 @@ semantics is the same as in \c{scope-if}. For example: \ if ($cxx.target.class == 'windows') - slash = \\ + slash = \\\\ case = false else slash = / @@ -1741,7 +1741,7 @@ When conditionally setting a single variable, using the evaluation context with a ternary operator is often more concise: \ -slash = ($cxx.target.class == 'windows' ? \\ : /) +slash = ($cxx.target.class == 'windows' ? \\\\ : /) \ Note also that the only purpose of having a separate (from \c{command-if}) @@ -2596,7 +2596,7 @@ are supported. \U - Convert next characters until \E to the upper case. \L - Convert next characters until \E to the lower case. - \\ - Literal backslash. + \\\\ - Literal backslash. \ Note that unlike POSIX semantics, just \c{&} does not have a special meaning |