dotnet-script icon indicating copy to clipboard operation
dotnet-script copied to clipboard

#!/usr/bin/env dotnet-script -> No such file or directory

Open jcansdale opened this issue 6 years ago • 1 comments

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.

image

I'm using a Mac. Any idea what's going wrong?

jcansdale avatar Feb 29 '20 19:02 jcansdale

@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

georgiosd avatar Jan 24 '25 12:01 georgiosd