Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix for numbered directories or files #75
This commit fixes some odd behavior for numbered files and directories. Even if the environment variables is undefined cd'ing into a numbered directory is not possible.
Below see a short shell transcript showing the issue from a plan bash shell.
As you can see, I start in a blank folder and initialize a new git repository, then I create a folder called 200 and cd into it. After sourcing the scm_breeze.sh script I can no cd into the directory if it is the only path component.
This patch fixes this behaviour by performing a check if the file or folder exists before applying the substitution for the environment variable for wrapped commands.