Skip to content

Instantly share code, notes, and snippets.

@kassick
Last active July 27, 2016 15:15
Show Gist options
  • Save kassick/662e23fe8a8f662433fd8df6348c1250 to your computer and use it in GitHub Desktop.
Save kassick/662e23fe8a8f662433fd8df6348c1250 to your computer and use it in GitHub Desktop.
ZSH no chaselinks
# Failure unexpected
# pwd reports that CWD is ~/.oh-my-zsh , the user
# would expect that the process executing 'cp' would run with cwd ~/.oh-my-zsh
# but zsh forks the process on the realpath -- which is odd from a user perspective
# specially due to the output of pwd
Voyager% pwd
/home/kassick
Voyager% setopt nochaselinks
Voyager% cd .oh-my-zsh
Voyager% pwd
/home/kassick/.oh-my-zsh
Voyager% cp ../.zshrc _zshrc
cp: impossível obter estado de '../.zshrc': No such file or directory
Voyager%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment