dk has asked for the wisdom of the Perl Monks concerning the following question:
I just noticed a thing that somehow escaped me for 20+ years of creating perl modules: if I f ex roll a distro on windows for CPAN, then a unix user will get trouble running bin/ files because the first line in the script cause it to fail like this:
/usr/bin/env: ‘perl\r’: No such file or directory
What would be a best practice for someone like myself who wants to roll distros on both linux and win32? Git checkouts files on linux with LF but on windows with CR/LF, which I thought was smart. One idea is to use `git config --global core.eol lf` but I'm unsure if that the best way around it.
Any good advice?
Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CR/LF in bin
by ikegami (Patriarch) on May 09, 2024 at 17:39 UTC | |
by dk (Chaplain) on May 09, 2024 at 17:50 UTC | |
Re: CR/LF in bin
by eyepopslikeamosquito (Archbishop) on May 10, 2024 at 06:06 UTC | |
by dk (Chaplain) on May 10, 2024 at 08:23 UTC | |
by etj (Priest) on May 11, 2024 at 11:24 UTC | |
by dk (Chaplain) on May 14, 2024 at 12:29 UTC | |
by etj (Priest) on May 14, 2024 at 12:52 UTC | |
by dk (Chaplain) on May 14, 2024 at 21:14 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |