In 'A | B && C' te referi la operatorul de executie conditionata '||' (cazul a) sau la operatorul pipe '|' (cazul b)?<br><br>In cazul a, citez din 'man bash', sectiunea liste:<br>"The return status is the exit status of the last
command executed".<br><br>In cazul b, citez tot din 'man bash', sectiunea pipelines:<br>"The return status of a pipeline is the exit status of the last
command".<br><br>Sper ca ti-am raspuns :).<br><br><br><div><span class="gmail_quote">On 10/15/06, <b class="gmail_sendername">Catalin Iacob</b> <<a href="mailto:iacobcatalin@gmail.com">iacobcatalin@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ce cod de eroare intoarce A | B de exemplu.<br><br>Adica daca am A | B && C si A intoarce 0 si B intoarce 1 trebuie decis
<br>ce se presupune ca intoarce A | B in ansamblul sau ca sa stiu daca mai<br>execut C sau nu.<br><br>La fel pentru A && B && C trebuie decis ce cod de eroare intoarce A && B<br>ca sa stim daca il mai facem pe C.
<br>_______________________________________________<br>so mailing list<br><a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
</a><br></blockquote></div><br>