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

better handling of shebangs line #1198

Open
wangvisual opened this issue Nov 20, 2024 · 0 comments · May be fixed by #1200
Open

better handling of shebangs line #1198

wangvisual opened this issue Nov 20, 2024 · 0 comments · May be fixed by #1200

Comments

@wangvisual
Copy link

The current shebangs line requires to match the full path of the program, like:
#!/bin/awk -f
#!/bin/bash
"#!/usr/bin/env just --justfile

However, the program can be at /usr/bin or /usr/local/bin or even /global/freeware/python3.8.0/bin/python3

Except 'env', for normal shebangs like, can we just use the last word of the path to check? eg:
#!/bin/awk -f => check 'awk'
#!/bin/bash => check 'bash'
/global/freeware/python3.8.0/bin/python3 => check 'python3'

For 'env', we can just check the word exactly after 'env', normally program after env does not have full path.

@wangvisual wangvisual linked a pull request Nov 23, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant