mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
add ash testcases
This commit is contained in:
parent
ccd412da09
commit
140644dc1c
10
shell/ash_test/ash-invert/invert.right
Normal file
10
shell/ash_test/ash-invert/invert.right
Normal file
@ -0,0 +1,10 @@
|
||||
1
|
||||
1
|
||||
1
|
||||
0
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
19
shell/ash_test/ash-invert/invert.tests
Executable file
19
shell/ash_test/ash-invert/invert.tests
Executable 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…
Reference in New Issue
Block a user