BeastJavaScript / Coffee-Stir

A preprocessor for coffee-script
4 stars 1 forks source link

^M in the coffee-stir script #1

Open retorquere opened 9 years ago

retorquere commented 9 years ago

The coffee-stir script starts with "#!/usr/bin/env node^M" which makes the file non-executable under Linux.

shavyg2 commented 9 years ago

What is the ^M. I'm not sure what you mean?

retorquere commented 9 years ago

The string at the top is "#!/usr/bin/env node\r\n" rather than "#!/usr/bin/env node\n"; the file was probably edited on a Windows system, which tends to add "\r" characters. But as the #! line is not used for windows platforms (to my knowledge), it probably shouldn't have them, as the *nix shell will interpret it as "run node\r" rather than "run node"

shavyg2 commented 9 years ago

Hmm I will look into this today.

retorquere commented 9 years ago

It's not in the git repo; looks like it could be the same issue as https://github.com/radubrehar/versiony-cli/issues/1, but I don't see anything relevant in the changelogs there.