dimanche 3 décembre 2017

does bash if always returns zero?

do bash if statements always return zero?

I tried

$ if false; then echo hi; fi;
$ echo $?

and it seems like it.

Aucun commentaire:

Enregistrer un commentaire