Send process to background and disown and exit the terminal (& and && operator clash in zsh)
1
vote
2
answers
1143
views
I need to run a process in the background and then exit the current terminal.
The following command results in error:
> google-chrome-stable &! && exit
zsh: parse error near '&&'
I've considered simply invoking 'google-chrome-stable &!' and checking the error code via an if statement, but hope to identify a simpler way to accomplish this.
Asked by Ian Melendez
(11 rep)
Apr 12, 2020, 04:19 PM
Last activity: May 6, 2020, 07:47 PM
Last activity: May 6, 2020, 07:47 PM