0

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 です。誰かがこの動作について何か説明がありますか?

4

1 に答える 1

0

わかりませんがeshell、エイリアスを作成するときに位置パラメーターを渡すのを忘れていると思います。

#                   don't forget the quotes  
#                ▼                            ▼
~ $ alias python '/path/to/alternate/python $*'
#                                           ▲▲
#                don't forget positional parameters

http://www.emacswiki.org/emacs/EshellAliasを参照してください。

于 2014-08-25T16:29:44.490 に答える