dotnet-script
dotnet-script copied to clipboard
#!/usr/bin/env dotnet-script -> No such file or directory
When I attempt to execute a script file with #!/usr/bin/env dotnet-script, I get a env: dotnet-script: No such file or directory error.
If I take out the - and change it to #!/usr/bin/env dotnet-script, it seems to work fine.

I'm using a Mac. Any idea what's going wrong?
@jcansdale if you're still having an issue - this is the way: https://stackoverflow.com/questions/18172405/getting-error-usr-bin-env-sh-no-such-file-or-directory-when-running-command-p