aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-02-06 14:27:46 -0600
committerRob Landley <rob@landley.net>2020-02-06 14:27:46 -0600
commit31711481dc06ab4b3068fc284529e0644b5e3673 (patch)
treec7fe7c44c7fab73482528fc9ee5f0a47d3cd1efe /tests
parent01bf7f6e61d13c57aa6159262af43792793afcae (diff)
downloadtoybox-31711481dc06ab4b3068fc284529e0644b5e3673.tar.gz
Basic parenthetical subshell support.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sh.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/sh.test b/tests/sh.test
index 4895ca7b..ca6a2831 100755
--- a/tests/sh.test
+++ b/tests/sh.test
@@ -57,9 +57,12 @@ testing "leading variable assignments" \
#testing "can't have space before first : but yes around arguments" \
# 'BLAH=abcdefghi; echo ${BLAH: 1 : 3 }' "bcd\n" "" ""
-testing "curly brackets and pipe" \
+NOSPACE=1 testing "curly brackets and pipe" \
'{ echo one; echo two ; } | tee blah.txt; wc blah.txt' \
"one\ntwo\n2 2 8 blah.txt\n" "" ""
+NOSPACE=1 testing "parentheses and pipe" \
+ '(echo two;echo three)|tee blah.txt;wc blah.txt' \
+ "two\nthree\n2 2 10 blah.txt\n" "" ""
# texpect "name" "command" E/O/I"string"