[Top][All Lists]

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

the fine art of error chek'n

From: grumpy
Subject: the fine art of error chek'n
Date: Thu, 7 May 2020 15:39:05 +0200 (CEST)

i have written simple programs use'n bash for many years
i most always use something like

if (($? != 0)); then echo failed; fi

other than readability what is the difference in the above and

false || echo failed

reply via email to

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