Linux论坛's Archiver

《开源》旗舰电子杂志2008年11期发布,火热下载中!

tracydundun 发表于 2008-7-21 20:51

set -o 的 结果倒是什么意思啊?

tracydundun@tracydundun-laptop:~$ set -o
allexport              off
braceexpand            on
emacs                  on
errexit                off
errtrace               off
functrace              off
hashall                on
histexpand             on
history                on
ignoreeof              off
interactive-comments        on
keyword                off
monitor                on
noclobber              off
noexec                 off
noglob                 off
nolog                  off
notify                 off
nounset                off
onecmd                 off
physical               off
pipefail               off
posix                  off
privileged             off
verbose                off
vi                     off
xtrace                 off
这上面的OFF 和 ON是指什么阿?比如vi off这一行,off代表什么被关闭?在off的情况下我也能用vi进行文件编辑啊/
请各位指教!!

grassofhust 发表于 2008-7-21 21:31

vi是命令行编辑模式,命令行下(readline)默认是用emacs的
set -o vi试试就知道了。

tracydundun 发表于 2008-7-21 21:44

回复 2楼 grassofhust 的帖子

我还是不很明白!

grassofhust 发表于 2008-7-21 21:52

[code]$ set -o vi[/code]之后按ESC
再按kjlh试试

bingmou 发表于 2008-8-26 17:26

man bash

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.