you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 3 weeks ago (3 children)

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?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 10 points 3 weeks ago (1 child)

    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" && \
    ...
    
  • source
  • parent
  • hideshow 2 child comments