The following commit has been merged in the master branch:
commit ed6b4f98c0f76d2bf28bbf153a8ceb8d2d0c60fb
Author: Raphael Geissert <[email protected]>
Date:   Thu Oct 25 17:18:49 2012 -0500

    checkbashisms: display the fancy filename in error messages
    
    Signed-off-by: Benjamin Drung <[email protected]>

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 63cf510..7ea977d 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -468,11 +468,11 @@ foreach my $filename (@ARGV) {
        }
     }
 
-    warn "error: $filename:  Unterminated heredoc found, EOF reached. Wanted: 
<$cat_string>, opened in line $start_lines{'cat_string'}\n"
+    warn "error: $display_filename:  Unterminated heredoc found, EOF reached. 
Wanted: <$cat_string>, opened in line $start_lines{'cat_string'}\n"
        if ($cat_string ne '');
-    warn "error: $filename: Unterminated quoted string found, EOF reached. 
Wanted: <$quote_string>, opened in line $start_lines{'quote_string'}\n"
+    warn "error: $display_filename: Unterminated quoted string found, EOF 
reached. Wanted: <$quote_string>, opened in line $start_lines{'quote_string'}\n"
        if ($quote_string ne '');
-    warn "error: $filename: EOF reached while on line continuation.\n"
+    warn "error: $display_filename: EOF reached while on line continuation.\n"
        if ($buffered_line ne '');
 
     close C;

-- 
Git repository for devscripts

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to