← Back to team overview

touch-packages team mailing list archive

[Bug 1376968] [NEW] file identifies a perl script as an awk script

 

Public bug reported:

ubuntu@server-a41d04fd-0554-47fb-be87-04c9e54db176:~$ dpkg -l file | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version         Architecture Description
+++-==============-===============-============-==========================================
ii  file           1:5.19-1ubuntu1 amd64        Determines file type using "magic" numbers
ubuntu@server-a41d04fd-0554-47fb-be87-04c9e54db176:~$ cat /tmp/file.pl
#!/usr/bin/perl -w
use strict;

BEGIN {
   if ( !$ENV{'PERL_MODULES'} ) {
      $ENV{'PERL_MODULES'}= '/srv/fai/config/perl_modules';
   }
   unshift @INC, $ENV{'PERL_MODULES'};
}

use FAI;
use NFS::Clients;

ubuntu@server-a41d04fd-0554-47fb-be87-04c9e54db176:~$ file /tmp/file.pl
/tmp/file.pl: awk script, ASCII text

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: file 1:5.19-1ubuntu1
ProcVersionSignature: User Name 3.16.0-20.27-generic 3.16.3
Uname: Linux 3.16.0-20-generic x86_64
ApportVersion: 2.14.7-0ubuntu2
Architecture: amd64
Date: Fri Oct  3 00:24:33 2014
Ec2AMI: ami-00000aff
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: aki-0000022a
Ec2Ramdisk: ari-0000022a
ProcEnviron:
 TERM=rxvt-unicode
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: file
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: file (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images utopic

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to file in Ubuntu.
https://bugs.launchpad.net/bugs/1376968

Title:
  file identifies a perl script as an awk script

Status in “file” package in Ubuntu:
  New

Bug description:
  ubuntu@server-a41d04fd-0554-47fb-be87-04c9e54db176:~$ dpkg -l file | cat
  Desired=Unknown/Install/Remove/Purge/Hold
  | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
  |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
  ||/ Name           Version         Architecture Description
  +++-==============-===============-============-==========================================
  ii  file           1:5.19-1ubuntu1 amd64        Determines file type using "magic" numbers
  ubuntu@server-a41d04fd-0554-47fb-be87-04c9e54db176:~$ cat /tmp/file.pl
  #!/usr/bin/perl -w
  use strict;

  BEGIN {
     if ( !$ENV{'PERL_MODULES'} ) {
        $ENV{'PERL_MODULES'}= '/srv/fai/config/perl_modules';
     }
     unshift @INC, $ENV{'PERL_MODULES'};
  }

  use FAI;
  use NFS::Clients;

  ubuntu@server-a41d04fd-0554-47fb-be87-04c9e54db176:~$ file /tmp/file.pl
  /tmp/file.pl: awk script, ASCII text

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: file 1:5.19-1ubuntu1
  ProcVersionSignature: User Name 3.16.0-20.27-generic 3.16.3
  Uname: Linux 3.16.0-20-generic x86_64
  ApportVersion: 2.14.7-0ubuntu2
  Architecture: amd64
  Date: Fri Oct  3 00:24:33 2014
  Ec2AMI: ami-00000aff
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: aki-0000022a
  Ec2Ramdisk: ari-0000022a
  ProcEnviron:
   TERM=rxvt-unicode
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: file
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/file/+bug/1376968/+subscriptions


Follow ups

References