Exit on error ignoring subshell exit status

Solution Verified - Updated -

Issue

Exit on error ignoring subshell exit status:

Setting shell option set -e (set -o errexit) , a script does not exit if an error occurs within a subshell using the subshell command (false)

Environment

Red Hat Enterprise Linux 5.8
Bash 3.2-32.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.