Imported from ../bash-2.04.tar.gz.
This commit is contained in:
parent
b72432fdcc
commit
bb70624e96
387 changed files with 28522 additions and 9334 deletions
19
tests/invert.tests
Normal file
19
tests/invert.tests
Normal 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 $?
|
||||
Loading…
Add table
Add a link
Reference in a new issue