Bug 1562135

Summary: file identifies groovy script as python code
Product: Red Hat Enterprise Linux 7 Reporter: Andrei Stepanov <astepano>
Component: fileAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Karel Volný <kvolny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: fsumsal, kdudka, kvolny
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: file-5.11-35.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 08:09:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
This is groovy script. But, file identifies it as Python code none

Description Andrei Stepanov 2018-03-29 15:27:43 UTC
file does wrong indentification of groovy script.

file-5.11-33.el7.x86_64


How reproducible: always

Have a groovy script (check attachment to this bug)

# file test
test: Python script, ASCII text executable

# file -i test
test: text/x-python; charset=us-ascii


head test
#!/usr/bin/env groovy
/*
.....

Comment 2 Andrei Stepanov 2018-03-29 15:28:56 UTC
Created attachment 1414794 [details]
This is groovy script. But, file identifies it as Python code

Comment 3 Kamil Dudka 2018-04-30 16:06:43 UTC
This seems to be the upstream commit that fixes it:

https://github.com/file/file/commit/FILE5_18~64

Comment 10 errata-xmlrpc 2018-10-30 08:09:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3079