summaryrefslogtreecommitdiffstats
path: root/main/augeas/0008-Shellvars-test-case-for-wrapping-command-arguments.patch
blob: 9b76775faee9151cb3f1dbe2fc11e0f8c8778c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 3531dcef9587c17577a8bae63525a9f63d72162c Mon Sep 17 00:00:00 2001
From: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Date: Thu, 4 Dec 2014 18:29:58 +0200
Subject: [PATCH 08/10] 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 f955b3e..c1892cd 100644
--- a/lenses/tests/test_shellvars.aug
+++ b/lenses/tests/test_shellvars.aug
@@ -527,13 +527,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       *)
-- 
1.8.3.1