diff options
author | P. J. McDermott <pjm@nac.net> | 2012-09-09 17:10:13 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-09-09 17:10:13 (EDT) |
commit | 01cd33a44eaf9f92d748a3b92ff3cd84e8b45454 (patch) | |
tree | d63204bd97dadb5c8a71d9eafc3e946ba9166668 /lib/common.sh | |
parent | 714f7e1115e937f1f1bb0618aee358af86be0a78 (diff) |
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.
Diffstat (limited to 'lib/common.sh')
-rw-r--r-- | lib/common.sh | 4 |
1 files changed, 1 insertions, 3 deletions
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} } |