Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash script not recognized correctly #59

Open
mduft opened this issue Feb 1, 2019 · 1 comment
Open

Bash script not recognized correctly #59

mduft opened this issue Feb 1, 2019 · 1 comment

Comments

@mduft
Copy link

mduft commented Feb 1, 2019

A simple bash script with this header:

#!/usr/bin/env bash

will result in a ContentInfo with

name: a
contentType: OTHER
mimeType: null
message: a b script text executable

whereas command line file says Bourne-Again shell script, ASCII text executable

I used the same magic file for both simplemagic and file (/usr/share/file/magic).

@mduft
Copy link
Author

mduft commented Feb 1, 2019

Having some arbitrary shebang:

$ cat xx
#!/some/executable

simplemagic gives a, type OTHER, msg 'a / script text executable', file gives:

$ file xx
xx: a /some/executable script, ASCII text executable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant