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!
In reply to CR/LF in bin by dk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |