Commit ad90ba0b by devttys0

Minor shebang signature changes

parent 2bc8ab68
...@@ -744,7 +744,7 @@ class Magic(object): ...@@ -744,7 +744,7 @@ class Magic(object):
# Split at the first comment delimiter (if any) and strip the result # Split at the first comment delimiter (if any) and strip the result
line = line.split('#')[0].strip() line = line.split('#')[0].strip()
# Ignore blank lines and lines that are nothing but comments. # Ignore blank lines and lines that are nothing but comments.
# We also don't support the !mime style line entries. # We also don't support the '!mime' style line entries.
if line and line[0] != '!': if line and line[0] != '!':
# Parse this signature line # Parse this signature line
sigline = SignatureLine(line) sigline = SignatureLine(line)
......
...@@ -477,12 +477,12 @@ ...@@ -477,12 +477,12 @@
>8 leshort <0x2911 {invalid} >8 leshort <0x2911 {invalid}
>8 leshort >0x2e92 {invalid} >8 leshort >0x2e92 {invalid}
0 string \x23!/ Executable script, 0 string \x23\x21/ Executable script,
>6 byte !0x2F >6 byte !0x2F
>>7 byte !0x2F {invalid} >>7 byte !0x2F {invalid}
>2 string x shebang: "%s" >2 string x shebang: "%s"
0 string \x23!\x20/ Executable script, 0 string \x23\x21\x20/ Executable script,
>7 byte !0x2F >7 byte !0x2F
>>8 byte !0x2F {invalid} >>8 byte !0x2F {invalid}
>3 string x shebang: "%s" >3 string x shebang: "%s"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment