Avoid infinite loop in __gs_relative_path when $(PWD) contains a symlink... #41

wants to merge 1 commit into


None yet
1 participant

alhad commented Jul 13, 2012

When $(PWD) has a symlinked directory, in function __gs_relative_path, the comparison becomes between an absolute path and symlinked directory, resulting in the while loop never terminating, and "gs" for example getting stuck forever. The patch first resolves $(PWD) to an absolute path.

For example I have a ~/work directory that maps to the base of all my sources, and I typically do |cd ~/work| to go there.

alhad closed this Jul 13, 2012


alhad commented Jul 13, 2012

Sorry there is a bug in my fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment