I’m not familiar with the -p flag on Firefox but in general, adding & to the end of your command backgrounds it and disown detaches it from your shell so it doesn’t close.
firefox -p &; disown should do what you’re looking for, if I’m understanding you right
I swear I have done these kindsof things without having an option that was a word. maybe just & im not sure. I just recall doing it and never recall using disown.
Looks like I’ve gotten too spoiled with zsh, I guess that doesn’t work with bash. Doing it in two separate commands should work tho, ie firefox -p & and then disown
I’m not familiar with the -p flag on Firefox but in general, adding
&to the end of your command backgrounds it anddisowndetaches it from your shell so it doesn’t close.firefox -p &; disownshould do what you’re looking for, if I’m understanding you rightYou don’t need disown if you’re closing the terminal. Just
firefox -p &I swear I have done these kindsof things without having an option that was a word. maybe just & im not sure. I just recall doing it and never recall using disown.
~$ firefox -p &; disown bash: syntax error near unexpected token `;’
just omit the
;firefox -p & disowndeleted by creator
Looks like I’ve gotten too spoiled with zsh, I guess that doesn’t work with bash. Doing it in two separate commands should work tho, ie
firefox -p &and thendisownit should be enough to put a space between∧like this:firefox -p & ; disownbut I’m not 100% sure.I’m also very spoiled by zsh, and I also remember encountering this issue.
I actually started up bash to test this when op first responded, and the space had the same problem
Thanks for the correction.
I read the bash documentation and I think you simply don’t need the
;. The & is already a command separator, just like ;Tested with bash:
sleep 100 & echo testprints right away.https://www.gnu.org/software/bash/manual/bash.html#Lists
deleted by creator