[英]ERROR bash: alias: python.exe' : not found
Every time I start Git Bash I'm getting the same message:每次我启动 Git Bash 我都会收到相同的消息:
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. (注意 python.exe' 之后的单引号)在我看来,在那之后 Git Bash 工作正常,但我不知道为什么会收到此消息。 My .bashrc
file has just one line of code:我的.bashrc
文件只有一行代码:
alias python='winpty python.exe'
If use $ alias
command I have got:如果使用$ alias
命令,我得到:
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?您是否仔细检查过您没有 windows 大引号而是直引号? 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.