Re: [fossil-users] Closing fossil output

2014-08-14 Thread Alysson Gonçalves de Azevedo
Oh i see, thank you very much. Alysson Gonçalves de Azevedo "Anarcho-syndicalism is a way of preserving freedom." - Monty Python 2014-08-11 18:08 GMT-03:00 Scott Robison : > On Mon, Aug 11, 2014 at 2:36 PM, Alysson Gonçalves de Azevedo < > agalys...@gmail.com> wrote: > >> I understand why on

Re: [fossil-users] Closing fossil output

2014-08-11 Thread Scott Robison
On Mon, Aug 11, 2014 at 2:36 PM, Alysson Gonçalves de Azevedo < agalys...@gmail.com> wrote: > I understand why one cannot open a database (or any other command) from > descriptor file minor than 3. > But why this `fossil branch 2>&1` do work and `fossil branch 2>&-` > doesn't, it's not clear. > >

Re: [fossil-users] Closing fossil output

2014-08-11 Thread Alysson Gonçalves de Azevedo
I understand why one cannot open a database (or any other command) from descriptor file minor than 3. But why this `fossil branch 2>&1` do work and `fossil branch 2>&-` doesn't, it's not clear. If i open a database using descriptor 3 and close stderr, does descriptor 3 becomes 2 ? I don't want bot

Re: [fossil-users] Closing fossil output

2014-08-11 Thread Scott Robison
On Mon, Aug 11, 2014 at 1:33 PM, Alysson Gonçalves de Azevedo < agalys...@gmail.com> wrote: > Well, I don't really get, a closed file descriptor wouldn't cause > corruption, would? > btw, i'll use >/dev/null. > It wouldn't cause corruption in and of itself, but once you close a file descriptor, i

Re: [fossil-users] Closing fossil output

2014-08-11 Thread Alysson Gonçalves de Azevedo
Well, I don't really get, a closed file descriptor wouldn't cause corruption, would? btw, i'll use >/dev/null. thanks Alysson Gonçalves de Azevedo "Anarcho-syndicalism is a way of preserving freedom." - Monty Python 2014-08-11 16:19 GMT-03:00 Stephan Beal : > On Mon, Aug 11, 2014 at 9:16 PM

Re: [fossil-users] Closing fossil output

2014-08-11 Thread Stephan Beal
On Mon, Aug 11, 2014 at 9:16 PM, Richard Hipp wrote: > That is by design, and it is for your protection. > http://www.sqlite.org/compile.html#minimum_file_descriptor > @Alysson: the scenario described there actually happened to the main fossil repo. Luckily, it corrupted only one or two non-crit

Re: [fossil-users] Closing fossil output

2014-08-11 Thread Richard Hipp
On Mon, Aug 11, 2014 at 2:46 PM, Alysson Gonçalves de Azevedo < agalys...@gmail.com> wrote: > Hi guys. I'm making a script for bash and just found something strange. > > If i redirect fossil output to /dev/null, everything works fine. > $ fossil branch > /dev/null > > $ fossil branch 2> /dev/null

[fossil-users] Closing fossil output

2014-08-11 Thread Alysson Gonçalves de Azevedo
Hi guys. I'm making a script for bash and just found something strange. If i redirect fossil output to /dev/null, everything works fine. $ fossil branch > /dev/null $ fossil branch 2> /dev/null trunk somebranch But if I close file descriptor