From: Zac Medico Date: Sun, 6 Apr 2008 21:44:18 +0000 (-0000) Subject: Fix BASH_ARGC and BASH_ARGV offsets some more. X-Git-Tag: v2.2_pre6~235 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=756dddbbe7b47e9e4456d0eabfb0b4d65fc8a3f1;p=portage.git Fix BASH_ARGC and BASH_ARGV offsets some more. svn path=/main/trunk/; revision=9734 --- diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 28653faf9..737c5dfb4 100755 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -26,8 +26,8 @@ dump_trace() { (( p = ${#BASH_ARGV[@]} )) while (( n > 0 )) ; do [ "${FUNCNAME[${n}]}" == "qa_call" ] && break + (( p -= ${BASH_ARGC[${n}]} )) (( n-- )) - (( p -= ${BASH_ARGC[${n} - 1]} )) done if (( n == 0 )) ; then (( n = ${#FUNCNAME[@]} - 1 ))