[PATCH] git-send-email-script - fix 2 small bugs that snuck through an untested bout...
authorRyan Anderson <ryan@michonline.com>
Mon, 1 Aug 2005 00:04:25 +0000 (20:04 -0400)
committerJunio C Hamano <junkio@cox.net>
Wed, 3 Aug 2005 05:53:25 +0000 (22:53 -0700)
Signed-off-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email-script

index 4927cec3d00c7947a6ee9bfd3f5404a762b9b02b..59bd691fc58460a9873fd050c30e90432b6a35ed 100755 (executable)
@@ -73,7 +73,7 @@ if (!defined $from) {
        do {
                $_ = $term->readline("Who should the emails appear to be from? ",
                        $from);
-       while (!defined $_);
+       while (!defined $_);
 
        $from = $_;
        print "Emails will be sent from: ", $from, "\n";
@@ -117,7 +117,7 @@ for my $f (@ARGV) {
                opendir(DH,$f)
                        or die "Failed to opendir $f: $!";
 
-               push @files, map { +$f . "/" . $_ } grep { -f $_ }
+               push @files, grep { -f $_ } map { +$f . "/" . $_ } 
                                sort readdir(DH);
 
        } elsif (-f $f) {