-
Notifications
You must be signed in to change notification settings - Fork 8
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
Transpile references to BASH_SOURCE variable #36
Comments
I think it's the path to the script, as specified on the CLI: $ cat print0.sh
#!/bin/bash
echo $0
$ bash print0.sh # notice the output is exactly what I type here
print0.sh
$ bash ./print0.sh # again, it prints whatever I typed
./print0.sh So, it's not guaranteed to be an absolute path. |
yes $0 is not guaranteed to be an absolute path in BASH - for that one uses either BASH_SOURCE or something like (cd -P $0) |
FWIW I think we implement this correctly. We translate Closing this because I think it's WAI, but let me know if I'm mistaken. |
i suggested implementing $0 as the absolute path to obviate the need to support BASH_SOURCE[0]. |
I think Renaming this issue to reflect that. |
Seems that $0 is like 'sh'?
shouldn't it be the path to the '.js' file?
preferably some absolute version of the path to the js file?
The text was updated successfully, but these errors were encountered: