* fix file to recognize python
@ 2016-02-27 21:54 Daniel Camolês
2016-02-27 22:08 ` [9front] " BurnZeZ
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Camolês @ 2016-02-27 21:54 UTC (permalink / raw)
To: 9front
% file /bin/hg
/bin/hg: limbo program
% cat /bin/hg
#!/bin/python
...
the fix:
% diff file.c.bkp file.c
805a806
> "#!/bin/python", "python executable file", 9, "text/plain",
after the fix:
% file /bin/hg
/bin/hg: python executable file
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] fix file to recognize python
2016-02-27 21:54 fix file to recognize python Daniel Camolês
@ 2016-02-27 22:08 ` BurnZeZ
2016-02-27 22:09 ` Daniel Camolês
0 siblings, 1 reply; 3+ messages in thread
From: BurnZeZ @ 2016-02-27 22:08 UTC (permalink / raw)
To: 9front
"#!/bin/python" is 13 bytes, but the patch specify the length as 9.
So it searches for matches against "#!/bin/py".
Is this intentional?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] fix file to recognize python
2016-02-27 22:08 ` [9front] " BurnZeZ
@ 2016-02-27 22:09 ` Daniel Camolês
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Camolês @ 2016-02-27 22:09 UTC (permalink / raw)
To: 9front
[-- Attachment #1: Type: text/plain, Size: 258 bytes --]
No, this was just ignorance. Thank you for pointing out.
On Feb 27, 2016 19:08, <BurnZeZ@feline.systems> wrote:
> "#!/bin/python" is 13 bytes, but the patch specify the length as 9.
> So it searches for matches against "#!/bin/py".
> Is this intentional?
>
[-- Attachment #2: Type: text/html, Size: 479 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-27 22:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-27 21:54 fix file to recognize python Daniel Camolês
2016-02-27 22:08 ` [9front] " BurnZeZ
2016-02-27 22:09 ` Daniel Camolês
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).