help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Precedence of || and &&


From: Peng Yu
Subject: [Help-bash] Precedence of || and &&
Date: Tue, 3 Jan 2017 20:19:49 -0600

Hi, The following example shows that || and && run in the order in the
command. Is it so?

~$ true || false && false
~$ echo $?
1
~$ true || (false && false)
~$ echo $?
0

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]