cbeust/kobalt

kobaltw in dist has DOS line ending in 1.0.49 release zip

Closed this issue · 3 comments

I could has sworn you made a test for that?

No, I never did. The test that verifies the zip shape is VerifyKobaltZipTest, think you could add this?

Yep, I'll work on it.

Also appears in 1.0.125

mcarifio@shuttle:/opt/kobalt/kobalt-1.0.125/kobalt-1.0.125/bin$p ./kobaltw
/usr/bin/env: ‘sh\r’: No such file or directory
 mcarifio@shuttle:/opt/kobalt/kobalt-1.0.125/kobalt-1.0.125/bin$p od -c kobaltw
0000000   #   !   /   u   s   r   /   b   i   n   /   e   n   v       s
0000020   h  \r  \n  \r  \n   c   a   s   e       "   $   (   u   n   a
...

Interestingly, github doesn't have \r\n line-endings, only \n:

curl --silent https://raw.githubusercontent.com/cbeust/kobalt/master/dist/kobaltw|od -c
0000000   #   !   /   u   s   r   /   b   i   n   /   e   n   v       s
0000020   h  \n  \n   c   a   s   e       "   $   (   u   n   a   m   e
...

so perhaps the line ending is introduced during packaging (i.e. making the zip file)? Hard to believe...