Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shebang don't work, on MacOS 12.6 with FishShell 3.5.1 #66

Open
leolovenet opened this issue Sep 23, 2022 · 2 comments
Open

Shebang don't work, on MacOS 12.6 with FishShell 3.5.1 #66

leolovenet opened this issue Sep 23, 2022 · 2 comments

Comments

@leolovenet
Copy link

When I use Shebang as described in README.md, I get an error.
Xnip2022-09-23_15-44-53

This seems to be a compatibility issue with FishShell at the moment, as it works fine with Bash and Zsh.

I checked the source code of FishShell and I think the problem is here https://github.com/fish-shell/fish-shell/blob/master/src/exec.cpp#L177

Currently still looking for a solution

@leolovenet
Copy link
Author

I found this. https://stackoverflow.com/a/9988385/2138221

Looks like Mac OS X requires interpreter to be binary, not another script.

I changed Shebang to #!/usr/bin/env /usr/local/bin/c temporarily solved the problem

Xnip2022-09-23_15-56-07

I hope this solution can help other people like me

@sebastiancarlos
Copy link

@leolovenet by the way, if you use /usr/bin/env in the shebang, you don't need to explicitly type the full path to /usr/local/bin/c.

If /usr/local/bin is in your PATH (and it probably is), you can use this shorter shebang:

#!/usr/bin/env c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants