Revert "add $pipestatus support"

This reverts commit ec290209db.
This commit is contained in:
ridiculousfish
2019-02-10 13:46:58 -08:00
parent 6da9d96241
commit 1701e2c558
8 changed files with 3 additions and 169 deletions

View File

@@ -1,12 +0,0 @@
####################
# pipestatus variable - builtins only
####################
# pipestatus variable - no builtins
####################
# pipestatus variable - mixed
####################
# pipestatus variable - non-pipe

View File

@@ -1,67 +0,0 @@
logmsg "pipestatus variable - builtins only"
false | false | false; echo $pipestatus
false | false | false; echo $status
true | true | true; echo $pipestatus
true | true | true; echo $status
false | true | false; echo $pipestatus
false | true | false; echo $status
true | false | true; echo $pipestatus
true | false | true; echo $status
logmsg "pipestatus variable - no builtins"
command false | command false | command false; echo $pipestatus
command false | command false | command false; echo $status
command true | command true | command true; echo $pipestatus
command true | command true | command true; echo $status
command false | command true | command false; echo $pipestatus
command false | command true | command false; echo $status
command true | command false | command true; echo $pipestatus
command true | command false | command true; echo $status
logmsg "pipestatus variable - mixed"
command false | command false | false; echo $pipestatus
command false | command false | false; echo $status
command true | true | command true; echo $pipestatus
command true | true | command true; echo $status
false | command true | command false; echo $pipestatus
false | command true | command false; echo $status
true | false | command true; echo $pipestatus
true | false | command true; echo $status
sh -c 'exit 5' | sh -c 'exit 2'; echo $pipestatus
sh -c 'exit 5' | sh -c 'exit 2'; echo $status
sh -c 'exit 3' | false | sh -c 'exit 6'; echo $pipestatus
sh -c 'exit 3' | false | sh -c 'exit 6'; echo $status
sh -c 'exit 9' | true | sh -c 'exit 3' | false; echo $pipestatus
sh -c 'exit 9' | true | sh -c 'exit 3' | false; echo $status
logmsg "pipestatus variable - non-pipe"
true; echo $pipestatus
true; echo $status
false; echo $pipestatus
false; echo $status
command true; echo $pipestatus
command true; echo $status
command false; echo $pipestatus
command false; echo $status
sh -c 'exit 4'; echo $pipestatus
sh -c 'exit 4'; echo $status

View File

@@ -1,52 +0,0 @@
####################
# pipestatus variable - builtins only
1 1 1
1
0 0 0
0
1 0 1
1
0 1 0
0
####################
# pipestatus variable - no builtins
1 1 1
1
0 0 0
0
1 0 1
1
0 1 0
0
####################
# pipestatus variable - mixed
1 1 1
1
0 0 0
0
1 0 1
1
0 1 0
0
5 2
2
3 1 6
6
9 0 3 1
1
####################
# pipestatus variable - non-pipe
0
0
1
1
0
0
1
1
4
4