Special characters will be the death of me
After spending days trying to figure out why a particular script wouldn’t run on a Linux cluster, it turned out to be end-of-line characters from Windows. I learned today that many git clients take care of this issue when moving between Windows and Linux by default, but mine (Fork) does not.
If you are ever in a situation like mine, you can check a file for such special characters in Notepad++ via Menu View → Show Symbol → *Show All Characters`. If you are using the Fork git client, you can change the behavior by opening the Console/Terminal in Fork and issuing the command
git config --global core.autocrlf false
References: