The following commit has been merged in the master branch:
commit d2dbc5ce8e4cc59e9a1f14a74fef56259564345a
Author: Raphael Geissert <[email protected]>
Date:   Thu May 27 16:25:38 2010 -0500

    checkbashisms: warn when EOF is reached unexpectedly
    
    Signed-off-by: James Vega <[email protected]>

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index dc79045..920106a 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -402,6 +402,14 @@ foreach my $filename (@ARGV) {
             }
        }
     }
+
+    warn "error: $filename:  Unterminated heredoc found, EOF reached. Wanted: 
<$cat_string>\n"
+       if ($cat_string ne '');
+    warn "error: $filename: Unterminated quoted string found, EOF reached. 
Wanted: <$quote_string>\n"
+       if ($quote_string ne '');
+    warn "error: $filename: EOF reached while on line continuation.\n"
+       if ($buffered_line ne '');
+
     close C;
 }
 

-- 
Git repository for devscripts


-- 
To unsubscribe, send mail to [email protected].

Reply via email to