aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/testscript.cli11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli
index 189018e..4c585ec 100644
--- a/doc/testscript.cli
+++ b/doc/testscript.cli
@@ -1320,6 +1320,17 @@ args = \'&foo\' # '&foo'
echo $args # echo &foo
\
+To make sure that a string is passed as is through both expansions use the
+\i{doubled single-quoting} idiom, for example:
+
+\
+filter = sed -e \''s/foo (bar|baz)/$&/'\'
+$* <<EOI | $filter >>EOO
+...
+EOI
+...
+EOO
+\
\h1#syntax|Syntax and Semantics|