Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

289
Views
Difference of -e, -u and -o pipefail in bash exit status

Being trying to properly guard for non-zero exits on a bash script.

What is the difference between -e, -u and -o pipefail?

-o pipefail is not sufficient to exit with an error code?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

set -e: Exit immediately if a command exits with a non-zero status.

set -u: If you try to access an undefined variable, that is an error.

set -o pipefail: If any command in a pipeline returns a non-zero exit code, the return code of the entire pipeline is the exit code of the last failed command.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!