View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000687 | file | General | public | 2025-10-22 18:04 | 2025-10-22 19:40 |
Reporter | rmoeller | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Platform | amd64 | OS | FreeBSD | OS Version | 16 |
Product Version | 5.46 | ||||
Summary | 0000687: Lua shebangs ignored when scripts contain HTML strings | ||||
Description | When Lua scripts (with recognized shebangs) contain snippets of HTML, the shebang is ignored and HTML wins. | ||||
Steps To Reproduce | $ cat >script.lua <<EOF #!/usr/local/bin/lua print('<html>') EOF $ file script.lua script.lua: HTML document, ASCII text | ||||
Additional Information | Adding !:strength + 50 to Lua shebangs worked for me, but it seems like this might be a broader issue with HTML's strength that may benefit from a different approach. | ||||
Tags | No tags attached. | ||||