-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 scripts not working #2876
Comments
Shebang scripts run like bash scripts:
|
Shebang scripts are supported by Robo, so it shouldn't be any trouble to continue to support them in #2843. |
Yes of course! However, its still not working for me. Note that
|
Sounds like the launcher is not passing through the original working directory; I am guessing that Drush 8 behaves the same way. I'm not sure if there are other commands that use this; pm-download is the only one I can think of off the top of my head, and it only needs it when there is no bootstrapped site. It works if you bootstrap via the cwd rather than via -r:
This could just be documented as a limitation of shebang scripts; ideally, though, the launcher would pass through the original cwd, just in case it was needed. (Note - I haven't looked into this later; it could be that the original cwd is lost at some other point.) |
We decided to deprecate shebang scripts. |
I cant get shebang scripts to work. I'm ok with dropping this feature. If anyone wants to debug, we ship with one. this should run it -
./drush --script-path=./examples php-script helloworld.script
The text was updated successfully, but these errors were encountered: