The difference between ‘&&’ and ‘-a’

  • A+
Categories:Linux

These days I am reading the book 'Advanced Bash-Scripting Guide' and I got confused about '&&' and '-a'.

The related part was here:

The last line explained the reason, but I wanted to find more evidences from the BASH manual and I got it.

So for '-a' and '-o', both sides will ALWAYS be executed.

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: