{"comment":{"url":"https://api.github.com/repos/Dirk1966/build-extra/comments/13213668","html_url":"https://github.com/Dirk1966/build-extra/commit/280c9911bd0f5ce883a48c3084ff0e746e0a3f36#commitcomment-13213668","id":13213668,"user":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"280c9911bd0f5ce883a48c3084ff0e746e0a3f36","created_at":"2015-09-14T14:00:54Z","updated_at":"2015-09-14T14:00:54Z","body":"> The reason why I wrote a perl script instead of this simple shell script is that dos2unix and unix2dos were creating temporary files.\r\n\r\nAre they really?\r\n\r\n> Additionally, I have mounted drives where I have git access from Windows as well as from Unix.  I thought of writing later a wrapper who is aware of that and is additionally able to convert UTF16 little and big endian to UTF8 with the help of perl.\r\n\r\nAnd we could also use `iconv.exe` for that.\r\n\r\n> An exit with\r\n>     exit( LINE % 100 / 2 );\r\n> saves me from getting headaches for the numbers.\r\n\r\nI could actually understand `exit(__LINE__ + 1)` so that you spare yourself some error messages when in hacking mode. But the correct way to exit with an error is with exit code 1 (unless you know exactly which of the exit codes defined by POSIX you want to use, but it is really rare that you want anything else than 1).\r\n\r\nJust for fun, I wrote and actually tested this: https://github.com/git-for-windows/build-extra/compare/master...dscho:notepad"}}