osx yosemite - Weird behaviour with zsh PATH -
i encourage weird problem zsh today.
my environment mac os x yosemite, zsh 5.0.5 (x86_64-apple-darwin14.0)
in .zshrc, have manually set path variable like
export path="$path:~/.composer/vendor/bin" try echo $path in terminal, result expected (contained ~/.composer/vendor/bin). try executing binary ~/.composer/vendor/bin, it'll return me "zsh: command not found" error.
try switching bash, echo $path expected, have same result zsh shell. try executing binary ~/.composer/vendor/bin, no problem found. seem path var acting on bash shell.
what's wrong zsh shell?
thanks
try using $home instead of ~. in many situations, shells not expand ~ when expect them , better use $home. ~ intended short cut interactive use. (the case can recall ~ preferred in .gitalias, ~ expanded , variables not.)