Skip to content

Instantly share code, notes, and snippets.

@binki
Created October 5, 2016 21:57
Show Gist options
  • Save binki/d3b448760e1c59768e6e5d3c3688d1be to your computer and use it in GitHub Desktop.
Save binki/d3b448760e1c59768e6e5d3c3688d1be to your computer and use it in GitHub Desktop.
the point of shebang
ohnobinki@gibby ~ $ cat blah.js
#!/usr/bin/env node
console.log('hi');
ohnobinki@gibby ~ $ ./blah.js
hi
ohnobinki@gibby ~ $ cat blah2.js
console.log('hi');
ohnobinki@gibby ~ $ ./blah2.js
./blah2.js: 行 1: 予期しないトークン `'hi'' 周辺に構文エラーがあります
./blah2.js: 行 1: `console.log('hi');'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment