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

autoenv is broken in zsh #138

Closed
Shellcat-Zero opened this issue Sep 8, 2016 · 9 comments
Closed

autoenv is broken in zsh #138

Shellcat-Zero opened this issue Sep 8, 2016 · 9 comments
Assignees
Labels
Milestone

Comments

@Shellcat-Zero
Copy link

I just installed autoenv, and after sourcing ~/.autoenv/activate.sh the shell hangs until sending interrupt signal (ctrl-C).

I executed test.sh in the tests directory, and here is the output:

./test.sh 
:: Running test_not_file for bash...Success.
:: Running test_custom_filename for bash...Success.
:: Running test_symlink for bash...Success.
:: Running test_simple for bash...Success.
:: Running test_cd_spaces for bash...Success.
:: Running test_colons for bash...Success.
:: Running test_doubleslash for bash...Success.
:: Running test_cd_env for bash...Success.
:: Running test_noclobber for bash...Success.
:: Running test_auth_spaces for bash...Success.
:: Running test_not_file for zsh...
^CFail.
Fail.
:: Output of last test:

:: Output of last test:

@dasJ
Copy link
Contributor

dasJ commented Sep 8, 2016

Which zsh version are you using? For me, it works on 5.2

@dasJ dasJ added this to the 0.2.1 milestone Sep 8, 2016
@dasJ dasJ self-assigned this Sep 8, 2016
@Shellcat-Zero
Copy link
Author

I'm on zsh 5.0.2 (x86_64-pc-linux-gnu)

@dasJ
Copy link
Contributor

dasJ commented Sep 8, 2016

Can you send me your aliases by running alias? (Of course, you can leave out the ones which are obviously unrelated like some git aliases)

@Shellcat-Zero
Copy link
Author

I have almost 150 aliases, but I think these are the only ones that are relevant (performing some kind of override):

cp='cp -i'
ls='ls -FX --color=auto'
mkdir='mkdir -p'
mv='mv -i'
rm='rm -I'

@dasJ
Copy link
Contributor

dasJ commented Sep 9, 2016

What does which chdir return for you?

On Fri, Sep 9, 2016, 10:54 Shellcat-Zero notifications@github.com wrote:

I have almost 150 aliases, but I think these are the only ones that are
relevant (performing some kind of override):

cp='cp -i'
ls='ls -FX --color=auto'
mkdir='mkdir -p'
mv='mv -i'
rm='rm -I'


You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub
#138 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEvdxyMaGsHsBAyEHfXhLvDfUwe3B5e5ks5qoR7FgaJpZM4J3yEO
.

@Shellcat-Zero
Copy link
Author

which chdir
chdir: shell built-in command

@dasJ
Copy link
Contributor

dasJ commented Sep 21, 2016

Can you send me the tracing output? Just add set -x to the beginning of the autoenv script.

@dasJ dasJ removed the waiting label Sep 21, 2016
dasJ added a commit to dasJ/autoenv that referenced this issue Sep 30, 2016
@dasJ
Copy link
Contributor

dasJ commented Sep 30, 2016

Does #142 fix this?

@dasJ dasJ added the waiting label Sep 30, 2016
@dasJ dasJ closed this as completed in #142 Oct 13, 2016
@dasJ dasJ removed the waiting label Oct 13, 2016
@Shellcat-Zero
Copy link
Author

Hi, I'm sorry I really didn't have time to debug this, and I still don't have time to spare on this issue, but I wanted to let you know that it is still broken in zsh, this time failing at test_cd_env for zsh.

After cloning the repo and installing it, the .zshrc file cannot be sourced due to it hanging on your activate.sh script. Output of test.sh:

./test.sh 
:: Running test_cd_env for bash...Success.
:: Running test_noclobber for bash...Success.
:: Running test_not_file for bash...Success.
:: Running test_doubleslash for bash...Success.
:: Running test_colons for bash...Success.
:: Running test_simple for bash...Success.
:: Running test_auth_spaces for bash...Success.
:: Running test_cd_spaces for bash...Success.
:: Running test_symlink for bash...Success.
:: Running test_custom_filename for bash...Success.
:: Running test_cd_env for zsh...^CFail.
Fail.
:: Output of last test:

:: Output of last test:

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

2 participants