-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
It's possible to make executable nim scripts with shebang and run it as ./hello.nim.
But it won't work if the file renamed into ./hello without the extension. If you run nim r hello the Nim compiler appends the .nim extension and tries to execute it as nim r hello.nim and fails because there's no such file.
Allow using nim r hello as it is, without appending the extension. As Nim executable scripts, like bin/fetch or bin/deploy looks much better than bin/fetch.nim or bin/deploy.nim.
#!/usr/bin/env nim c -r
echo "Hi"Reactions are currently unavailable