4 ms·
It's not the same thing. ; executes the following command even if the first one fails. && only if the previous command returns 0.
by nkkollaw 10y ago
It's not the same thing.
; executes the following command even if the first one fails. && only if the previous command returns 0.
- deleted 10y ago[deleted]
- Trd 10y agoNot 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"
- discreditable 10y ago> It's not the same thing. Oh but it is! Read the link!