From 31711481dc06ab4b3068fc284529e0644b5e3673 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 6 Feb 2020 14:27:46 -0600 Subject: Basic parenthetical subshell support. --- tests/sh.test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/sh.test') 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" -- cgit v1.2.3