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

Fix infinite loop on OSX Catalina in activate.sh #189

Closed
wants to merge 1 commit into from
Closed

Fix infinite loop on OSX Catalina in activate.sh #189

wants to merge 1 commit into from

Conversation

emorikawa
Copy link

@emorikawa emorikawa commented Oct 22, 2019

Fixes #188

This implements @sennav and @meermanr's suggestion as a pull request.

Due to Catalina's new firmlinks, this fixes an infinite loop on OSX Catalina 10.15.

Manually running source activate.sh will enter the infinite loop condition. Manually running source activate.sh with the line change returns nearly immediately and enables autoenv.

@kingofsevens
Copy link

I tested this in 10.15.1 Beta (19B86a) and this works as mentioned.

@@ -32,6 +32,7 @@ ${_file}"
fi
fi
[ "$(\pwd -P)" = "${_mountpoint}" ] && \break
[ "$(\pwd -P)" = "/" ] && \break

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: replace the whitespace with tabs to align with other formatting.

Suggested change
[ "$(\pwd -P)" = "/" ] && \break
[ "$(\pwd -P)" = "/" ] && \break

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emorikawa can you please update the PR with the suggested change?

@kingofsevens
Copy link

kingofsevens commented Oct 29, 2019

but since it works, I realized this takes too much time just to change directory.. even cd .. takes 3 secs let alone auto completion is hell. Using commands like cp -r ../something/something to_something/to_something completion works okay and I tested with and without the autoenv, this is definitely autoenv. Any ideas?

@emorikawa
Copy link
Author

Sorry for the staleness. Thank you @davidalee for addressing. Closing this in favor of #190

@emorikawa emorikawa closed this Mar 31, 2020
@emorikawa emorikawa deleted the fix-catalina branch March 31, 2020 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Freeze when running activate.sh on Mac Catalina OS
4 participants