2018-03-03 cygwin在mobaxterm下妥协

  1. bashrc 中不修改path则:

504 $ files python
/bin/python: symbolic link to python2.7.exe
/usr/local/bin/python: symbolic link to python2.7.exe
/f/Python36/python: PE32+ executable (console) x86-64, for MS Windows

505 $ files python2.7
/bin/python2.7: PE32 executable (console) Intel 80386, for MS Windows
/usr/local/bin/python2.7: PE32 executable (console) Intel 80386, for MS Windows

506 $ files bash
/bin/bash: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
/usr/local/bin/bash: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
/f/Git/bin/bash: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows

  1. bash和python不兼容,所以无法运行。同样的包括 ping,mongo,redis-cli等,除非全部加 cmd /c成为 cmd /c python形式即可执行。
    最后 type -a python 列出所有 python可执行文件。逐个尝试看它与linux默认python的差异。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容