【发布时间】:2014-08-25 15:43:52
【问题描述】:
在 Emacs 24.3.1 中,我在 eshell 中通过 Tramp/ssh 进行编辑时得到这个:
/<remotepath> $ bash
/<remotepath> $ python test.py
hello world!
/<remotepath> $ exit
exit
/<remotepath> $ python test.py
Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
文件test.py是:
print "hello world!"
Bash 是 4.1.2 版。有人对这种行为有任何解释吗?
【问题讨论】:
-
也许
python命令有别名? -
是的!我将它别名为一个替代 python 版本,而不是系统上安装的那个。有没有一种简单而正确的方法来别名为 python 的替代版本?另一种方法是每次都输入绝对路径。谢谢!