Package: file
Version: 4.17-1
Followup-For: Bug #308305

Hi,

file regards files which feature "BEGIN {" as awk script text, even if
such files contain a perl dash-bang line.  Such a BEGIN contruct is
commonly seen in Perl scripts, and therefore is not a very specific
awk-test.

I believe reordering /usr/share/file/magic, so that

 0   string/b    #!\ /usr/bin/perl    perl script text executable

(now line 9760) is before

 0   regex       BEGIN[[:space:]]*[{] awk script text

(now line 2842) would fix this.  I've tested adding the "#!\
/usr/bin/perl" line too /etc/magic; at least that works around this.

Thanks, Bye,

Joost

Attachment: signature.asc
Description: Digital signature

Reply via email to