- 论坛徽章:
- 23
|
原帖由 huangbt_unix 于 2008-10-14 11:25 发表 ![]()
man set不能用啊。
这语句作用是使用vi风格的命令行编辑器没错,这应该是通过设置一个本地变量,达到更改编辑器的作用,但是这个-o不懂得什么意思啊,它到底是一个本地变量,还是set的一个选项呢?
man set
-o option-name
The option-name can be one of the following:
allexport
Same as -a.
braceexpand
Same as -B.
emacs Use an emacs-style command line editing inter-
face. This is enabled by default when the shell
is interactive, unless the shell is started with
the --noediting option.
errexit Same as -e.
hashall Same as -h.
histexpand
Same as -H.
history Enable command history, as described above under
HISTORY. This option is on by default in inter-
active shells.
ignoreeof
The effect is as if the shell command
``IGNOREEOF=10'' had been executed (see Shell
Variables above).
keyword Same as -k.
monitor Same as -m.
noclobber
Same as -C.
noexec Same as -n.
noglob Same as -f. nolog Currently ignored.
notify Same as -b.
nounset Same as -u.
onecmd Same as -t.
physical
Same as -P.
posix Change the behavior of bash where the default
operation differs from the POSIX 1003.2 standard
to match the standard (posix mode).
privileged
Same as -p.
verbose Same as -v.
vi Use a vi-style command line editing interface.
xtrace Same as -x.
If -o is supplied with no option-name, the values of the
current options are printed. If +o is supplied with no
option-name, a series of set commands to recreate the
current option settings is displayed on the standard
output. |
|