2.
代码: 全选
$ man ls
man: can't execute which less: No such file or directory
man: command exited with status 255: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | LESS=-ix8RmPm Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=ls(1) which less -s
4.在stackoverflow我看到一个类似的但用那的方法没效果,链接:
代码: 全选
https://stackoverflow.com/questions/26524559/git-commands-execution-like-git-diff-or-git-help-commit-returns-errors-abo/41726440
4.我的系统是ubuntu-18.04.1