简体   繁体   中英

ERROR bash: alias: python.exe' : not found

Every time I start Git Bash I'm getting the same message:

bash: alias: python.exe': not found

(Pay attention to a single quote after python.exe') It seems to me that after that Git Bash works normally but I cannot figure out why I get this message. My .bashrc file has just one line of code:

alias python='winpty python.exe'

If use $ alias command I have got:

alias ipython='winpty ipython.exe'

alias ll='ls -l'

alias ls='ls -F --color=auto --show-control-chars'

alias python='winpty python.exe'

Could somebody help me to figure out why I get that strange message? Thank you in advance!

Did you double check that you don't have windows curly quotes but straight quotes? I try this:

# works fine
$ alias python='winpty python.exe'
# does not work fine
$ alias python=‘winpty python.exe’
bash: alias: python.exe’: not found

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM