With all those connected with & won’t it skip the rest after the first failure? Or does ‘no such program’ or ‘you don’t have permission’ not produce an error?
In bash, & just starts the program in the background, so all of the commands are run in parallel. You’re probably thinking of &&, which runs the command on its left, checks its return code, and then decides whether run the command on the right.
Although, in this case there are no ‘commands on the right’ since all the commands are on separate lines. You’d need to backslash the commands together, something like
Relevant XKCD:

How am I still learning about XKCDs I’ve never seen especially ones in the 1000 range.
Congrats on being one of today’s lucky 10,000!
So meta
Too meta. https://xkcd.com/1447/
Is this a reference to something?
Yes. https://xkcd.com/1053/
https://xkcd.com/1053/
It’s the Key and Peele of geek comics
When you first learnt about xkcd, did you not S L O O O R P the entire back catalogue?
I guess when I did that there were A LOT fewer. Cuz I’m old.
I’m so old I remember anticipating the 404
if $1 is not installed after that, wipe your hard drive and start over
It could be a crate…
Script needs to be updated, Rust wasn’t particularly popular back then (if it existed. I don’t know how old this one is, but it’s pretty old)
March 11, 2016 according to https://www.explainxkcd.com/wiki/index.php/1654:_Universal_Install_Script
According to the Rust Wikipedia article, it was juuuust starting to be used in real things around that period. Definitely before it was popular.
I can stop laughing at steamcmd.
Good. If you couldn’t that would be a real problem.
With all those connected with & won’t it skip the rest after the first failure? Or does ‘no such program’ or ‘you don’t have permission’ not produce an error?
In bash,
&just starts the program in the background, so all of the commands are run in parallel. You’re probably thinking of&&, which runs the command on its left, checks its return code, and then decides whether run the command on the right.Although, in this case there are no ‘commands on the right’ since all the commands are on separate lines. You’d need to backslash the commands together, something like
pip install "$1" && \ easy_install "$1" && \ ...I saw it as wrapped, so couldn’t dismiss the option that all were on a single logical line. But you’re right, I was thinking of &&
That would be &&.
A single & will run them in parallel.
sigh
I know right could just be apt install