Avoid bashism >&file

The >& form is only for file descriptors, passing a file name there is
a bash extension.

    $ /bin/dash -c 'echo foo >&/dev/null'
    /bin/dash: 1: Syntax error: Bad fd number
This commit is contained in:
Tommi Virtanen 2015-08-27 06:57:27 -07:00 committed by Avery Pennarun
commit c2c013970e
4 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
rm -f log
redo fatal >&/dev/null || true
redo fatal >/dev/null 2>&1 || true
[ "$(cat log)" = "ok" ] || exit 5