View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000263 | file | General | public | 2021-05-02 19:52 | 2021-05-09 22:39 |
Reporter | peoro | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.40 | ||||
Fixed in Version | 5.41 | ||||
Summary | 0000263: Shebang patterns only match the beginning of the command, rather than the whole word | ||||
Description | Currently, magic patterns that detect files using a shebang only test the beginning of the command string. A file starting with e.g. `#!/usr/bin/env basher` is detected as "Bourne-Again shell script", even though "basher" is not bash. The same issue affects every shebang pattern I tried (sh, bash, node, python, perl etc). | ||||
Steps To Reproduce | $ echo '#!/bin/shawarma' > script $ file script script: POSIX shell script, ASCII text executable | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2021-05-02 19:52 | peoro | New Issue | |
2021-05-09 22:39 | christos | Assigned To | => christos |
2021-05-09 22:39 | christos | Status | new => assigned |
2021-05-09 22:39 | christos | Status | assigned => resolved |
2021-05-09 22:39 | christos | Resolution | open => fixed |
2021-05-09 22:39 | christos | Fixed in Version | => 5.41 |
2021-05-09 22:39 | christos | Note Added: 0003605 |