HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c0c1f8
)
Bash: tests for multiline outputs from sh*.
author
Chris McCormick
<chris@mccormick.cx>
Sun, 1 Dec 2019 06:24:19 +0000
(14:24 +0800)
committer
Chris McCormick
<chris@mccormick.cx>
Sun, 1 Dec 2019 06:24:19 +0000
(14:24 +0800)
bash/tests/stepA_mal.mal
patch
|
blob
|
blame
|
history
diff --git
a/bash/tests/stepA_mal.mal
b/bash/tests/stepA_mal.mal
index
c121efa
..
a330946
100644
(file)
--- a/
bash/tests/stepA_mal.mal
+++ b/
bash/tests/stepA_mal.mal
@@
-15,3
+15,12
@@
(sh* "for x in 1 2 3; do echo -n \"$((1+$x)) \"; done; echo")
;=>"2 3 4"
+
+(sh* "for x in {1..10}; do echo $x; done")
+;=>"1\n2\n3\n4\n5\n6\n7\n8\n9\n10"
+
+(sh* "echo -n {1..3}")
+;=>"1 2 3"
+
+(sh* "echo hello; echo foo; echo yes;")
+;=>"hello\nfoo\nyes"