tdTrX@lemmy.ml to Linux@lemmy.mlEnglish · 2 days agoHow to run firefox -p command and have firefox opened after closing the terminal like WIndows Run box.message-squaremessage-square20fedilinkarrow-up111arrow-down10
arrow-up111arrow-down1message-squareHow to run firefox -p command and have firefox opened after closing the terminal like WIndows Run box.tdTrX@lemmy.ml to Linux@lemmy.mlEnglish · 2 days agomessage-square20fedilink
minus-squarealiceitc@lemmy.blahaj.zonelinkfedilinkarrow-up3·edit-22 days agoit should be enough to put a space between & and ; like this: firefox -p & ; disown but I’m not 100% sure. I’m also very spoiled by zsh, and I also remember encountering this issue.
minus-squarefelsiq@piefed.ziplinkfedilinkEnglisharrow-up1·2 days agoI actually started up bash to test this when op first responded, and the space had the same problem
minus-squarealiceitc@lemmy.blahaj.zonelinkfedilinkarrow-up2·edit-22 days agoThanks 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 test prints right away. https://www.gnu.org/software/bash/manual/bash.html#Lists
it 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