Re: /dev/stderr problem

2016-10-17 Thread Linda Walsh
Eric Blake wrote: On 10/17/2016 01:32 AM, Thorsten Kampe wrote: * Thorsten Kampe (Mon, 17 Oct 2016 08:25:13 +0200) 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

Re: /dev/stderr problem

2016-10-17 Thread Eric Blake
On 10/17/2016 01:32 AM, Thorsten Kampe wrote: > * Thorsten Kampe (Mon, 17 Oct 2016 08:25:13 +0200) > >> 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/stder

Re: /dev/stderr problem

2016-10-16 Thread Thorsten Kampe
* Thorsten Kampe (Mon, 17 Oct 2016 08:25:13 +0200) > 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 > ``` On further inspection: the `xtrace` is not rela