View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000564 | file | General | public | 2024-09-20 21:43 | 2024-11-09 21:06 |
Reporter | Random Void User | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.45 | ||||
Fixed in Version | HEAD | ||||
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 | |
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 |