Can I make a CoffeeScript file executable just like a Perl or shell script?
Something like adding
#!coffee
on top? (I tried that, and all I get is ‘bad interpreter’)
I’m on OS X if that makes a difference.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use:
Just make sure you also make the file executable:
Then you can run it with: