-
Notifications
You must be signed in to change notification settings - Fork 31
fib example broken #15
Comments
Umm. fib is still broken. Am I missing something? |
If you're seeing the exact same problem still, you might be missing something and should pull again. If you're seeing a different flavor of broken, it might be related to the fact that you're on cygwin - you might be the first. |
Works now. Thought I had pulled already, but I guess not! Thanks! |
When Craig reported this, I couldn't run:
After the change, this runs for me. However, the original problem still fails to run for me:
On Thu, Nov 21, 2013 at 2:04 PM, Craig Andera [email protected]:
|
I'm getting the same thing under OS X: ./fib.gk gives a syntax error. Works under cygwin. |
I think this is related to the difference in shebang handling between OS X and Linux, but I'm not sure what the best way to proceed is. In a nutshell, OS X appears to be passing the script contents (instead of the script path) to |
One hack might be to check the first two characters of input and see if they're a shebang, and self-call with the canonical form. |
I thought I pushed it already, but I guess not. So I would like to make a change so that gherkin doesn't need -l for the shebang line (/usr/bin/env behaves differently on different platforms with regard to dash arguments). In other words, the default is to treat positional arguments as files to run. I think that would make at least one case of shebangs less problematic. Sound reasonable? |
@kanaka 👍 In the meantime re: the general weirdness of shebang, I propose we create an At least then newcomers on most platforms will have a good tire-kicking experience. |
When I run
./fib.gk
in the current version, it printsI'm on cygwin, and
bash --version
reportsThe text was updated successfully, but these errors were encountered: