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的差异。

你可能感兴趣的:(2018-03-03 cygwin在mobaxterm下妥协)