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
bash -e: No such file or directory #20
Comments
Do you have |
I also get this error, I have bash on my machine. Ubuntu 11.04. The problem comes on line 8 of bin/rbenv, where it tries to Running bash under debug mode (with
|
I have the same problem.
what's the -e option?. It seems linux's env doesn't support option in hashbang.
my platform is ArchLinux. |
I also get this on Debian testing. It seems the The solution is to replace
with
|
the solution is to not |
@mhansen: I think @ndreas' fix is also important - on my machine (Debian Squeeze), this does not work:
whereas the proposed alternative does:
|
Sorry, you're quite right. That's very confusing!
|
Arguments on the shebang line are a known portability issue (see http://en.wikipedia.org/wiki/Shebang_(Unix)#Portability). Get enough people using something and the portability issues come out to play. But ndreas's fix should do the trick. @mhansen I don't think the issue is |
Thanks for the fix! It works fine now. Its odd that the error only occurs when the script is executed from the command line. $ bash --version GNU bash, version 4.2.8(1)-release (i686-pc-linux-gnu) $ cat a #!/usr/bin/env bash -e echo hello $ ./a /usr/bin/env: bash -e: No such file or directory $ bash ./a hello $ |
When I type Its still bash doing the work there to interpret the script, right? Oh hold the phone - thinking back to unix classes. Bash is doing a Thanks for the note! Don On Fri, Aug 12, 2011 at 10:56 AM, grahamedgecombe
|
The script wouldn't work as expected every time for me. See e.g. this comment for some background for this change: rbenv/rbenv#20 (comment)
The `-e` wouldn't work as expected for me. See e.g. this comment for some background for this change: rbenv/rbenv#20 (comment)
i just cloned the project and added the bin path to PATH, but get an error from env.
$ rbenv
/usr/bin/env: bash -e: No such file or directory
$ head -1 .rbenv/bin/rbenv
!/usr/bin/env bash -e
$ env bash -e
$
The text was updated successfully, but these errors were encountered: