summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-05 22:30:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-05 22:30:18 +0000
commit5e2a21a7ee17f96501c46eff41b5b9ed09a55a12 (patch)
treefb756ad4b42f3b292339ffee96e9a70b97ca7ac7
parent045b51e2bf5bda93b3eef9e8ae0fcba66be680af (diff)
downloadportage-5e2a21a7ee17f96501c46eff41b5b9ed09a55a12.tar.gz
portage-5e2a21a7ee17f96501c46eff41b5b9ed09a55a12.tar.bz2
portage-5e2a21a7ee17f96501c46eff41b5b9ed09a55a12.zip
fix BASH_ARGV walking
svn path=/main/trunk/; revision=2817
-rwxr-xr-xbin/ebuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 41285edb2..a28d98e30 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -306,7 +306,7 @@ dump_trace() {
# Display function arguments
args=
if [[ -n "${BASH_ARGV[@]}" ]]; then
- for (( j = 0 ; j < ${BASH_ARGC[${n} - 1]} ; ++j )); do
+ for (( j = 1 ; j <= ${BASH_ARGC[${n} - 1]} ; ++j )); do
newarg=${BASH_ARGV[$(( p - j - 1 ))]}
args="${args:+${args} }'${newarg}'"
done