diff options
author | Denis Vlasenko | 2007-03-05 20:46:46 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-03-05 20:46:46 +0000 |
commit | 140644dc1cae13df47de2c9d54109c75800446d6 (patch) | |
tree | d9271ad835c4118af00d12bf3e5e7c8f87551739 /shell/ash_test/ash-invert/invert.tests | |
parent | ccd412da09d3d9ff54e14874c74c0a8dde6015b2 (diff) | |
download | busybox-140644dc1cae13df47de2c9d54109c75800446d6.zip busybox-140644dc1cae13df47de2c9d54109c75800446d6.tar.gz |
add ash testcases
Diffstat (limited to 'shell/ash_test/ash-invert/invert.tests')
-rwxr-xr-x | shell/ash_test/ash-invert/invert.tests | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/shell/ash_test/ash-invert/invert.tests b/shell/ash_test/ash-invert/invert.tests new file mode 100755 index 0000000..8393d95 --- /dev/null +++ b/shell/ash_test/ash-invert/invert.tests @@ -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 $? |