$ python -i test.py
系统找不到指定的路径。(system could not find the path)
>>> Stopped
$ cat test.py
#!/usr/bin/python
import os
cmd = "ls -l >/dev/null 2>&1"
os.system(cmd)
When I use standard output redirection in Python with gitbash, it just doesn't work, while it just works well when running the command directly in gitbash.
$ ls -l >/dev/null 2>&1
Is there anyone that has met this problem or might help?