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:
parent
5156feae9d
commit
c2c013970e
4 changed files with 8 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
rm -f log
|
||||
redo fatal >&/dev/null || true
|
||||
redo fatal >/dev/null 2>&1 || true
|
||||
|
||||
[ "$(cat log)" = "ok" ] || exit 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue