A
Alexey Verkhovsky
Sorry for asking a somewhat silly question, but...
If I am working with some Ruby application that has to work from the
same ZIP file on Windows, Linux and OSX, and has to have shebang
comments working out of box on the atter two, what is the right
end-of-line style for such a scenario?
As far as I understand, Ruby itself would handle anything.
As for shebangs, sh on Linux would handle only "\n" and on OSX it would
handle anything (?) and on Windows there is no such concern.
It follows that end-of-line style must be Linux' "\n".
Is that correct?
--
Best regards,
Alexey Verkhovsky
Ruby Forum: http://ruby-forum.org (moderator)
RForum: http://rforum.andreas-s.net (co-author)
Instiki: http://instiki.org (maintainer)
If I am working with some Ruby application that has to work from the
same ZIP file on Windows, Linux and OSX, and has to have shebang
comments working out of box on the atter two, what is the right
end-of-line style for such a scenario?
As far as I understand, Ruby itself would handle anything.
As for shebangs, sh on Linux would handle only "\n" and on OSX it would
handle anything (?) and on Windows there is no such concern.
It follows that end-of-line style must be Linux' "\n".
Is that correct?
--
Best regards,
Alexey Verkhovsky
Ruby Forum: http://ruby-forum.org (moderator)
RForum: http://rforum.andreas-s.net (co-author)
Instiki: http://instiki.org (maintainer)