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
|
|
@ -2,7 +2,7 @@ exec >&2
|
|||
. ../skip-if-minimal-do.sh
|
||||
|
||||
rm -f out.log sort.log err.log
|
||||
redo --keep-going 1.ok 2.fail 3.fail 4.ok 5.ok 6.fail 7.ok >&err.log &&
|
||||
redo --keep-going 1.ok 2.fail 3.fail 4.ok 5.ok 6.fail 7.ok >err.log 2>&1 &&
|
||||
exit 11 # expect it to return nonzero due to failures
|
||||
sort out.log >sort.log
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue