Skip to content
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

zsh/test_chruby_exec fails when run under pbuilder #336

Open
x-yuri opened this issue Jun 5, 2015 · 4 comments
Open

zsh/test_chruby_exec fails when run under pbuilder #336

x-yuri opened this issue Jun 5, 2015 · 4 comments
Labels

Comments

@x-yuri
Copy link

x-yuri commented Jun 5, 2015

See for yourself:

>>> Running ./test/chruby_exec_test.sh ...
test_chruby_exec_no_arguments
test_chruby_exec_no_command
test_chruby_exec
zsh:1: command not found: chruby
ASSERT:did change the ruby expected:<2.0.0> but was:<>

As it turns out it has something to do with [ -t 0 ] which is false under pbuilder. When run manually, the test passes.

@x-yuri
Copy link
Author

x-yuri commented Jun 5, 2015

I now see, running chruby works out because chruby.sh is included in .zshrc and .bashrc. But .zshrc is run only for interactive shells. The bash tests pass because .bashrc is included in .bash_profile.

@postmodern
Copy link
Owner

Should we add a .zlogin file which should be loaded in login mode?

@x-yuri
Copy link
Author

x-yuri commented Jun 22, 2015

I was thinking of adding .zprofile, and sourcing .zshrc there. But using .zlogin will supposedly work out as well.

@havenwood havenwood added the zsh label Oct 19, 2017
@amomchilov
Copy link

Related issue: #502

Works fine on master, but not 0.39.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants