From: Simon Ruderich Date: Sun, 7 Mar 2010 20:59:03 +0000 (+0100) Subject: tests/lib.sh.test: Use return instead of exit in a subshell. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=0d362b7f25680421a0b29f1ac940004304785921;p=config%2Fdotfiles.git tests/lib.sh.test: Use return instead of exit in a subshell. --- diff --git a/tests/lib.sh.test b/tests/lib.sh.test index 171c7c2..e8d5053 100644 --- a/tests/lib.sh.test +++ b/tests/lib.sh.test @@ -9,7 +9,7 @@ which() { echo /bin/ls else echo no doesnt-exist in /usr/bin /bin /usr/sbin /sbin - (exit 1) + return 1 fi } echo stdout which @@ -22,7 +22,7 @@ which() { echo /bin/ls else echo no doesnt-exist in /usr/bin /bin /usr/sbin /sbin >&2 - (exit 1) + return 1 fi } echo stderr which