Update tests to not use '>&-' that closes file descriptor, but instead use correct redirection to '>/dev/null'

This commit is contained in:
Ondřej Surý
2018-04-24 20:58:58 +02:00
parent 0ea363746e
commit 3f66b8acb0
6 changed files with 11 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ showprivate () {
checkprivate () {
ret=0
x=`showprivate "$@"`
echo $x | grep incomplete >&- 2>&- && ret=1
echo $x | grep incomplete >/dev/null 2>&1 && ret=1
[ $ret = 1 ] && {
echo "$x"
echo_i "failed"