tdTrX@lemmy.ml to Linux@lemmy.mlEnglish · 7 hours agoHow to run firefox -p command and have firefox opened after closing the terminal like WIndows Run box.message-squaremessage-square19fedilinkarrow-up18arrow-down10
arrow-up18arrow-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 · 7 hours agomessage-square19fedilink
minus-squarealiceitc@lemmy.blahaj.zonelinkfedilinkarrow-up2·edit-233 minutes 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·1 hour 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-254 minutes 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