[so] operatori conditionali
cosminratiu at gmail.com
cosminratiu at gmail.com
Sun Oct 15 17:04:25 EEST 2006
In 'A | B && C' te referi la operatorul de executie conditionata '||' (cazul
a) sau la operatorul pipe '|' (cazul b)?
In cazul a, citez din 'man bash', sectiunea liste:
"The return status is the exit status of the last command executed".
In cazul b, citez tot din 'man bash', sectiunea pipelines:
"The return status of a pipeline is the exit status of the last command".
Sper ca ti-am raspuns :).
On 10/15/06, Catalin Iacob <iacobcatalin at gmail.com> wrote:
>
> Ce cod de eroare intoarce A | B de exemplu.
>
> Adica daca am A | B && C si A intoarce 0 si B intoarce 1 trebuie decis
> ce se presupune ca intoarce A | B in ansamblul sau ca sa stiu daca mai
> execut C sau nu.
>
> La fel pentru A && B && C trebuie decis ce cod de eroare intoarce A && B
> ca sa stim daca il mai facem pe C.
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20061015/ea0b4b48/attachment.html
More information about the so
mailing list