Hacker News new | ask | show | jobs
by nkkollaw 3338 days ago
It's not the same thing.

; executes the following command even if the first one fails. && only if the previous command returns 0.

2 comments

Not when used with and. And and or verify if the previous command executed. It says as much in the documentation linked by OP.

So you can do things like: runthiscommand; and echo "Success"; or echo "Failed"

> It's not the same thing.

Oh but it is! Read the link!