View Issue Details

IDProjectCategoryView StatusLast Update
0000564fileGeneralpublic2024-11-09 21:06
ReporterRandom Void User Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.45 
Fixed in VersionHEAD 
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

christos

2024-11-09 21:06

manager   ~0004075

Fixed, thanks

Issue History

Date Modified Username Field Change
2024-09-20 21:43 Random Void User New Issue
2024-11-09 21:06 christos Assigned To => christos
2024-11-09 21:06 christos Status new => assigned
2024-11-09 21:06 christos Status assigned => resolved
2024-11-09 21:06 christos Resolution open => fixed
2024-11-09 21:06 christos Fixed in Version => HEAD
2024-11-09 21:06 christos Note Added: 0004075