the following bash script results in a different output when
redirected to a file.
printf "FIRST LINE\n" > /dev/stderr
shopt -os xtrace
printf "SECOMD LINE\n" > /dev/stderr
$ bash script.sh
+ printf 'SECOMD LINE\n'
$ bash script.sh 2> file && cat file
When I use `>&2` instead of `> /dev/stderr` the problem does not
Since this problem does not occur on Linux but also with Zsh on
Cygwin, I think this is a Cygwin issue.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple