3 ms·
Instead use: command1; and command2 More info: https://fishshell.com/docs/current/tutorial.html#tut_combiners https://fishshell.com/docs/current/tutorial.
by discreditable 9y ago
Instead use:
command1; and command2
More info: https://fishshell.com/docs/current/tutorial.html#tut_combiners https://fishshell.com/docs/current/tutorial.html#tut_combine...
- nkkollaw 9y agoIt's not the same thing. ; executes the following command even if the first one fails. && only if the previous command returns 0.
- deleted 9y ago[deleted]
- Trd 9y 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 9y ago> It's not the same thing. Oh but it is! Read the link!