From d68729a4719c8e00778e6fd06639bf8c32988277 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 4 Dec 2014 18:29:58 +0200 Subject: [PATCH 13/15] Shellvars: test case for wrapping command arguments --- lenses/tests/test_shellvars.aug | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lenses/tests/test_shellvars.aug b/lenses/tests/test_shellvars.aug index 76f6f59..e7fad5a 100644 --- a/lenses/tests/test_shellvars.aug +++ b/lenses/tests/test_shellvars.aug @@ -607,13 +607,19 @@ esac\n" = (* Test: Shellvars.lns Parse (almost) any command *) test Shellvars.lns get "echo foobar 'and this is baz' -/usr/local/bin/myscript.sh with args\n" = +/usr/local/bin/myscript.sh with args +echo foo \ +bar\n" = { "@command" = "echo" { "@arg" = "foobar 'and this is baz'" } } { "@command" = "/usr/local/bin/myscript.sh" { "@arg" = "with args" } } + { "@command" = "echo" + { "@arg" = "foo \ +bar" } + } (* Local Variables: *) (* mode: caml *) -- 2.1.0