From b7ac1aa14da03470567ab751486a1ed20d8cacdb Mon Sep 17 00:00:00 2001 From: freesource Date: Fri, 21 Dec 2001 05:40:45 +0000 Subject: [PATCH] A better way to count ARGs. --- expect_uml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expect_uml b/expect_uml index f8cb607..0a5f9c1 100755 --- a/expect_uml +++ b/expect_uml @@ -15,7 +15,7 @@ my $preserve_permissions = "$ARGV[4]"; my $end = 6; my $filesystem; -for ( 5 .. $end ) { +for ( 5 .. $#ARGV ) { if ( $_ == 5 ) { $filesystem = "$ARGV[5]"; # What to do with the rieserfs command