204c7fb229
When "set -e" option is on, shell must exit when any command fails, including compound commands of the form (compound-list) executed in a subshell. Bash and dash shells have this behaviour. Also add a corresponding testcase. Signed-off-by: Rostislav Skudnov <rostislav@tuxera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
command2.right | ||
command2.tests | ||
command.right | ||
command.tests | ||
echo_write_error.right | ||
echo_write_error.tests | ||
errexit1.right | ||
errexit1.tests | ||
exec.right | ||
exec.tests | ||
for.right | ||
for.tests | ||
func1.right | ||
func1.tests | ||
func2.right | ||
func2.tests | ||
func3.right | ||
func3.tests | ||
func4.right | ||
func4.tests | ||
func5.right | ||
func5.tests | ||
func_args1.right | ||
func_args1.tests | ||
func_bash1.right | ||
func_bash1.tests | ||
func_local1.right | ||
func_local1.tests | ||
func_local2.right | ||
func_local2.tests | ||
last_amp.right | ||
last_amp.tests | ||
local1.right | ||
local1.tests | ||
local2.right | ||
local2.tests | ||
nulltick1.right | ||
nulltick1.tests | ||
shift1.right | ||
shift1.tests | ||
source1.right | ||
source1.tests | ||
source2.right | ||
source2.tests | ||
tickquote1.right | ||
tickquote1.tests |