Re:Black Screen – Both a terminal emulator and an interactiv...
by discreditable on Wednesday May 03, 2017 @11:44AM
(#14256730)
Instead use:
More info: https://fishshell.com/docs/current/tutorial.html#tut_combine...
[ Parent
| on HN ]
Re:Black Screen – Both a terminal emulator and an interactiv...
by nkkollaw on Wednesday May 03, 2017 @02:17PM
(#14258542)
It's not the same thing.
; executes the following command even if the first one fails. && only if the previous command returns 0.
Re:Black Screen – Both a terminal emulator and an interactiv...
by Trd on Wednesday May 03, 2017 @02:45PM
(#14258814)
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"
Re:Black Screen – Both a terminal emulator and an interactiv...
by discreditable on Thursday May 04, 2017 @10:06AM
(#14264892)
> It's not the same thing.
Oh but it is! Read the link!