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. > > If i open a database using descriptor 3 and close stderr, does descriptor > 3 becomes 2 ? > I don't want bother anyone, i just asking because this is something new to > me. > Your guess is correct. Normally you have STDIN, STDOUT & STDERR as fd 0, 1 & 2 respectively. By telling the shell to close / not open STDERR (2>&-) 2 becomes the next file descriptor and is used by the environment when SQLite opens one of the databases. SDR
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users