View Issue Details

IDProjectCategoryView StatusLast Update
0000687fileGeneralpublic2025-10-22 19:40
Reporterrmoeller Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Platformamd64OSFreeBSDOS Version16
Product Version5.46 
Summary0000687: Lua shebangs ignored when scripts contain HTML strings
DescriptionWhen 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 InformationAdding !: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.
TagsNo tags attached.

Activities

christos

2025-10-22 19:40

manager   ~0004306

Yes, this is an issue with strength... It becomes a game of whack-a-mole

Issue History

Date Modified Username Field Change
2025-10-22 18:04 rmoeller New Issue
2025-10-22 19:39 christos Assigned To => christos
2025-10-22 19:39 christos Status new => assigned
2025-10-22 19:40 christos Note Added: 0004306