add ash testcases

This commit is contained in:
Denis Vlasenko 2007-03-05 20:46:46 +00:00
parent ccd412da09
commit 140644dc1c
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,10 @@
1
1
1
0
0
1
0
1
0
1

View File

@ -0,0 +1,19 @@
# tests of return value inversion
# placeholder for future expansion
# user subshells (...) did this wrong in bash versions before 2.04
! ( echo hello | grep h >/dev/null 2>&1 ); echo $?
! echo hello | grep h >/dev/null 2>&1 ; echo $?
! true ; echo $?
! false; echo $?
! (false) ; echo $?
! (true); echo $?
! true | false ; echo $?
! false | true ; echo $?
! (true | false) ; echo $?
! (false | true) ; echo $?