[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fossil-users
Subject:    Re: [fossil-users] Closing fossil output
From:       Alysson_Gonçalves_de_Azevedo <agalysson () gmail ! com>
Date:       2014-08-14 12:26:22
Message-ID: CACRz=Ag=w1MjSd6dqp0B_ofiFwD2Un8-pc609oNmHGMMLrxFWg () mail ! gmail ! com
[Download RAW message or body]

Oh i see, thank you very much.



Alysson Gon=C3=A7alves de Azevedo

"Anarcho-syndicalism is a way of preserving freedom." - Monty Python


2014-08-11 18:08 GMT-03:00 Scott Robison <scott@casaderobison.com>:

> On Mon, Aug 11, 2014 at 2:36 PM, Alysson Gon=C3=A7alves de Azevedo <
> agalysson@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 descripto=
r
>> 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 SQLi=
te
> 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
>
>

[Attachment #3 (text/html)]

<div dir="ltr"><div>Oh i see, thank you very much.<br></div><div \
class="gmail_extra"><br clear="all"><div><div dir="ltr"><br><br>Alysson Gonçalves de \
Azevedo<br><br>&quot;Anarcho-syndicalism is a way of preserving freedom.&quot; - \
Monty Python<br>


<div style="text-align:right"></div><div><div \
style="text-align:right"></div></div></div></div> <br><br><div \
class="gmail_quote">2014-08-11 18:08 GMT-03:00 Scott Robison <span dir="ltr">&lt;<a \
href="mailto:scott@casaderobison.com" \
target="_blank">scott@casaderobison.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">


<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>On Mon, Aug 11, \
2014 at 2:36 PM, Alysson Gonçalves de Azevedo <span dir="ltr">&lt;<a \
href="mailto:agalysson@gmail.com" target="_blank">agalysson@gmail.com</a>&gt;</span> \
wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">I understand why one cannot open a database \
(or any other command) from descriptor file minor than 3.<br>



But why this `fossil branch 2&gt;&amp;1` do work and `fossil branch 2&gt;&amp;-` \
doesn&#39;t, it&#39;s not clear.<br>

<br>If i open a database using descriptor 3 and close stderr, does descriptor 3 \
becomes 2 ?<br>I don&#39;t want bother anyone, i just asking because this is \
something new to me.</div></blockquote></div><div><br>Your guess is correct. Normally \
you have STDIN, STDOUT &amp; STDERR as fd 0, 1 &amp; 2 respectively. By telling the \
shell to close / not open STDERR (2&gt;&amp;-) 2 becomes the next file descriptor and \
is used by the environment when SQLite opens one of the databases.</div>



<div><br></div><div>SDR</div></div>
</div></div>
<br>_______________________________________________<br>
fossil-users mailing list<br>
<a href="mailto:fossil-users@lists.fossil-scm.org" \
target="_blank">fossil-users@lists.fossil-scm.org</a><br> <a \
href="http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users" \
target="_blank">http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users</a><br>
 <br></blockquote></div><br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic