I have some python file in windows
, and I transfer them to my gentoo
by samba.
I check their mode is executable, and I use ./xxx.py
to run it, but get an error:
: No such file or directory
I am troubled that it does not prompt what file is not here.
but when I use python xxx.py
, it can run in the right way.
and then I check the CR character by use set ff
in vim, and found it is dos
, then I use set ff=unix
to set it, now it can run by using ./xxx.py
but I don't know why it can be use python xxx.py
when ff=dos
?