From 01cd33a44eaf9f92d748a3b92ff3cd84e8b45454 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 09 Sep 2012 17:10:13 -0400 Subject: Return rather than print value in _ob_return. Don't use _ob_return in command substitutions. Doing so unsets stack variables only in a subshell environment. --- (limited to 'lib/common.sh') diff --git a/lib/common.sh b/lib/common.sh index 73293d7..22b017c 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -36,7 +36,5 @@ _ob_return() # Pop the variable list from the top of the stack. _OB_STACK_VARS="${_OB_STACK_VARS%|*}" - # Print the return value. - echo ${1} - return 0 + return ${1} } -- cgit v0.9.1