We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f888d2 commit 07d3be0Copy full SHA for 07d3be0
test/error
@@ -0,0 +1 @@
1
+../test/test_compound.bash
test/ok
@@ -4,3 +4,6 @@
4
./test_compound.bash
5
./test_others.bash
6
./test_job.bash
7
8
9
test/test_compound.bash
@@ -661,8 +661,10 @@ $com -c '[[ -s /etc/passwdaaaa ]]'
661
$com -c 'touch /tmp/$$-empty ; [[ -s /tmp/$$-empty ]]'
662
[ "$?" = "0" ] || err $LINENO
663
664
-$com -c '[[ -t 1 ]]'
665
-[ "$?" = "0" ] || err $LINENO
+if [[ -t 1 ]] ; then
+ $com -c '[[ -t 1 ]]'
666
+ [ "$?" = "0" ] || err $LINENO
667
+fi
668
669
$com -c '[[ -t 0 ]]'
670
[ "$?" = "1" ] || err $LINENO
0 commit comments