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/load.sh') diff --git a/lib/load.sh b/lib/load.sh index f22e128..ee32e9b 100644 --- a/lib/load.sh +++ b/lib/load.sh @@ -31,15 +31,18 @@ ob_use() if [ "${#}" -eq 1 ]; then _obu_module="${1}" else - return $(_ob_return 125) + _ob_return 125 + return ${?} fi _obu_module='@@LIBOPKBUILD@@'"/${_obu_module}.sm" if [ -r "${_obu_module}" ]; then . "${_obu_module}" else - return $(_ob_return 1) + _ob_return 1 + return ${?} fi - return $(_ob_return 0) + _ob_return 0 + return ${?} } -- cgit v0.9.1