rbenv: All rbenv commands yield "env: bash\r: No such file or directory"
All my rbenv calls comes back as bash\r: No such file or directory
See below for more info.
krirou@iHAL ~> rbenv --version
env: bash\r: No such file or directory
krirou@iHAL ~> which rbenv
/Users/krirou/.rbenv/bin/rbenv
krirou@iHAL ~/.rbenv (master) [141]> fish --version
fish, version 2.1.0
krirou@iHAL ~ [127]> cat .config/fish/config.fish
set -x LC_CTYPE sv_SE.UTF-8
# https://github.com/sstephenson/rbenv/issues/459
set PATH $HOME/.rbenv/bin $PATH
status --is-interactive ; and source (rbenv init - | psub)
krirou@iHAL ~> cd .rbenv/
krirou@iHAL ~/.rbenv (master)> git status
# On branch master
nothing to commit, working directory clean
krirou@iHAL ~/.rbenv (master)> git log HEAD
commit 14bc162ca606e0c61da8d82e1b99b0946d7be13f
Merge: 6d0bf9b 1a6bada
Author: Mislav Marohnić <mislav.marohnic@gmail.com>
Date: Thu Jan 2 22:44:19 2014 +0100
Merge branch 'openbsd'
Closes #524
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- Update .gitconfig to disable autocrlf * rbenv fails when autocrlf is enabled * ref. https://github.com/rbenv/rbenv/issues/541 — committed to Edunga1/dotfiles by Edunga1 3 years ago
Still think this is a bit odd though. I’m cloning on my mac; so line endings “should” be same right?
Interesting… Thanks!
Me neither. Might be a good idea to add a .gitattributes file to the root and set up
or such.
https://help.github.com/articles/dealing-with-line-endings That might prevent future problems.
Cheers and thx again for all the help!
These people say that setting
git config core.autocrlftofalsesolves the problem (I guess you have to re-clone rbenv in order to apply it, as hinted in the second link)