-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Kernel: shebang executables and arguments #585
Comments
tgerdes
changed the title
shebang executables and arguments
Kernel: shebang executables and arguments
Sep 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shebang scripts can take arguments, but they're currently being dropped:
Expected: similar behavior to running through bash directly:
Similarly, the shebang executable can contain arguments and should be parsed out as such:
Expected: this should be executed the same as
bash -ex test2.sh Sailor
:Also the error message "Command not found" is confusing in this context; I can clearly see the
./test2.sh
file exists and is executable. It might be useful if it output what command wasn't found, in this case when executing./test2.sh
it couldn't find the shebang interpreter/usr/local/bin/bash -ex
The text was updated successfully, but these errors were encountered: