View Issue Details

IDProjectCategoryView StatusLast Update
0000564fileGeneralpublic2024-09-20 21:43
ReporterRandom Void User Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.45 
Summary0000564: Bash Shebang Path Tweak Causes Detection Failure
DescriptionThe upstream 'fuzzypkg' script's shebang makes file think it's C source, not shell source. Changing the shebang makes file detect the script properly. The original shebang is OK, although the script, being very specific to Void Linux, should be changed as shown anyway. The bug report remains valid on file against the original shebang. Note the script's lacks of file suffix as well.
Steps To Reproduce$ cat /etc/os-release | grep PRETTY_NAME
PRETTY_NAME="Void Linux"

$ file --version
file-5.45
magic file from /usr/share/misc/magic

$ wget "https://github.com/zdykstra/fuzzypkg/raw/refs/heads/master/fuzzypkg"

$ head -n 1 fuzzypkg
#!/bin/env bash

$ file fuzzypkg
fuzzypkg: C source, ASCII text

$ sed "s/bin\/env/usr\/bin\/env/g" fuzzypkg > fuzzypkg-mod
$ head -n 1 fuzzypkg-mod
#!/usr/bin/env bash

file fuzzypkg-mod
fuzzypkg-mod: Bourne-Again shell script, ASCII text executable
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-09-20 21:43 Random Void User New Issue