0

environments

❯ sw_vers ProductName: Mac OS X ProductVersion: 10.15.6 BuildVersion: 19G2021

❯ zsh --version zsh 5.8 (x86_64-apple-darwin19.3.0)

problem description

i added the dir /Applications/Google\ Chrome.app/Contents/MacOS/ of chrome path /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome to my PATH, which finally looks like:

/Applications/Google\ Chrome.app/Contents/MacOS/:/Users/xiaojguan/Library/Python/3.7/bin/:/Users/xiaojguan/Library/Python/3.7/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

but i failed to type Google\ Chrome to start chrome but it is ok to start chrome with /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

thanks in advance

4
  • What does which "Google Chrome" print?
    – Daniel B
    Oct 15, 2020 at 8:42
  • What does print -l $path show?
    – mpy
    Oct 15, 2020 at 10:13
  • ❯ which "Google Chrome" Google Chrome not found Oct 16, 2020 at 2:02
  • ❯ print -l $path /Applications/Google Chrome.app/Contents/MacOS/ /Users/xiaojguan/Library/Python/3.7/bin/ /Users/xiaojguan/Library/Python/3.7/bin/ /usr/local/bin /usr/bin /bin /usr/sbin /sbin Oct 16, 2020 at 2:02

0

You must log in to answer this question.

Browse other questions tagged .