[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23466: file command bug
From: |
Djoudi |
Subject: |
bug#23466: file command bug |
Date: |
Fri, 6 May 2016 12:38:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
Hi
The *file* command probably reports some text files ending with 'end.'
as Pascal source files like in the following example:
% file /usr/lib/erlang/**/*.* | grep -i pascal
/usr/lib/erlang/lib/ic-4.3.6/src/ic_codegen.erl: Pascal source,
ASCII text
/usr/lib/erlang/lib/kernel-3.2/src/inet_dns.erl: Pascal source,
ASCII text
/usr/lib/erlang/lib/stdlib-2.4/examples/erl_id_trans.erl: Pascal
source, ASCII text
/usr/lib/erlang/lib/stdlib-2.4/src/erl_expand_records.erl: Pascal
source, ASCII text
/usr/lib/erlang/lib/stdlib-2.4/src/erl_parse.erl: Pascal source,
ASCII text
/usr/lib/erlang/lib/stdlib-2.4/src/qlc_pt.erl: Pascal source, ASCII text
Erlang files may end with the string "end." since the dot marker is used
to terminate expressions.
So, the *file* command should take into account file extensions (.p or
.pas) or file MIME types to report Pascal source files.
Best regards.
Brahim Djoudi
- bug#23466: file command bug,
Djoudi <=