-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
cd //
results in infinite loop
#125
Comments
Is this problem still there in 0.2.0? I rewrote most of this logic. In the meantime: https://youtu.be/LDZX4ooRsWs |
Yes. Here's the loop where it get's stuck now: while [ "${PWD}" != "${_mountpoint}" ]; do
_file="${PWD}/${AUTOENV_ENV_FILENAME}"
if [ -f "${_file}" ]; then
if [ -z "${_hadone}" ]; then
echo -n ${_file}
_hadone='1'
else
echo -n "
${_file}"
fi
fi
command -v chdir >/dev/null 2>&1 && chdir .. || builtin cd ..
done Thanks much for the link. |
Some pertinent background: |
Need support for symlinked directory too. Same behaviour occurs when you try to switch into a soft linked directory from other mount point. eg:
Infinite loop. |
@ashokrajar Can you please open a new issue for that? It's caused by another problem. |
@greg9q Can you please test the current master? |
@dasJ Yes, current master now works. Thanks! |
Using version 0.1.0 on my Mac.
cd //
gets caught here:Once PWD gets to
//
it stays there and keeps looping. Ran into this since my Anaconda install likes to put these//
prefixes at the start of path names. Kind of weird, but they are valid paths.The text was updated successfully, but these errors were encountered: