diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-13 20:57:00 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-27 17:08:05 +0300 |
commit | 3fa1b103014bab51f8f257e1e12f27f7e498f42e (patch) | |
tree | 4958c20dead025ffa0305dd0c99041382bda16a8 /tests/command | |
parent | c4292d57e2e67dfcdac9004f8edb229976f6669a (diff) |
Add support for builtin escaping to command running API
Diffstat (limited to 'tests/command')
-rw-r--r-- | tests/command/testscript | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/command/testscript b/tests/command/testscript index db9bb5c..12ddd79 100644 --- a/tests/command/testscript +++ b/tests/command/testscript @@ -184,4 +184,14 @@ end { $* -p 'echo abc >a' >'echo abc >a' &a } + + : escape + : + : Note that the sed builtin doesn't support multiple scripts. + : + if ($cxx.target.class != 'windows') + { + echo 'abc' >=f; + $* '^sed -e s/a/b/ -e s/c/b/ f' >'bbb' + } } |