echo $PATH
/Users/yuma/.rbenv/shims:/Users/yuma/.rbenv/bin:./vendor/bin:/Users/yinaura/google-cloud-sdk/bin:/usr/local/opt/openssl/bin:/Users/yuma/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
for p in $(echo "$PATH" | sed 's/:/ /g'); do echo "$p"; done
/Users/yuma/.rbenv/shims
/Users/yuma/.rbenv/bin
./vendor/bin
/Users/yinaura/google-cloud-sdk/bin
/usr/local/opt/openssl/bin
/Users/yuma/.pyenv/shims
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
echo $path
/Users/yuma/.rbenv/shims /Users/yuma/.rbenv/bin ./vendor/bin /Users/yinaura/google-cloud-sdk/bin /usr/local/opt/openssl/bin /Users/yuma/.pyenv/shims /usr/local/bin /usr/bin /bin /usr/sbin /sbin
for p in "${path[@]}"; do echo "$p"; done
/Users/yuma/.rbenv/shims
/Users/yuma/.rbenv/bin
./vendor/bin
/Users/yinaura/google-cloud-sdk/bin
/usr/local/opt/openssl/bin
/Users/yuma/.pyenv/shims
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
$path
is empty.
bash-4.4$ echo $path
- zsh 5.5.1 (x86_64-apple-darwin17.5.0)