View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000564 | file | General | public | 2024-09-20 21:43 | 2024-09-20 21:43 |
Reporter | Random Void User | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 5.45 | ||||
Summary | 0000564: Bash Shebang Path Tweak Causes Detection Failure | ||||
Description | The 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 | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-09-20 21:43 | Random Void User | New Issue |