From 1d68408541f6e716c9f9fd4a5a6a073a3914f61f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 31 May 2007 11:55:37 +0200 Subject: [PATCH] export number of sources --- ccollect.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ccollect.sh b/ccollect.sh index 3cbce84..367006c 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -99,6 +99,9 @@ while [ "$i" -le $# ]; do if [ "$NO_MORE_ARGS" = 1 ]; then eval source_${no_sources}=\"$arg\" no_sources=$(($no_sources+1)) + + # make variable available for subscripts + eval export source_${no_sources} else case "$arg" in -a|--all) @@ -126,6 +129,9 @@ while [ "$i" -le $# ]; do i=$(($i+1)) done +# also export number of sources +export no_sources + # # be really, really, really verbose #