From 756dddbbe7b47e9e4456d0eabfb0b4d65fc8a3f1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 6 Apr 2008 21:44:18 +0000 Subject: Fix BASH_ARGC and BASH_ARGV offsets some more. svn path=/main/trunk/; revision=9734 --- bin/isolated-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 )) -- cgit v1.2.3-1-g7c22