summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-06 21:44:18 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-06 21:44:18 +0000
commit756dddbbe7b47e9e4456d0eabfb0b4d65fc8a3f1 (patch)
tree1611abc71de4e1062f3ae0d6af4a72b82b7a8c82 /bin/isolated-functions.sh
parentIn dump_trace(), fix BASH_ARGV and BASH_ARGC offsets so that they are always (diff)
downloadportage-multirepo-756dddbbe7b47e9e4456d0eabfb0b4d65fc8a3f1.tar.gz
portage-multirepo-756dddbbe7b47e9e4456d0eabfb0b4d65fc8a3f1.tar.bz2
portage-multirepo-756dddbbe7b47e9e4456d0eabfb0b4d65fc8a3f1.zip
Fix BASH_ARGC and BASH_ARGV offsets some more.
svn path=/main/trunk/; revision=9734
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 28653faf..737c5dfb 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 ))