Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    The exit status of the first script, which you use with || between the scripts, is the exit status of echo. Is that what you expect? Commented Mar 1, 2022 at 8:37
  • Divide by zero? let x=1/0 Commented Mar 1, 2022 at 8:37
  • I don't actually care about division by zero. I just have a process like test_1.sh that could result in success (return code 0), or failure (anything other than 0). I want something like test_2.sh to run only in the former case. Commented Mar 2, 2022 at 0:26