Skip to content

Commit c327ee0

Browse files
authored
doc: Update shopt.md (#574)
1 parent 764e369 commit c327ee0

File tree

1 file changed

+49
-10
lines changed

1 file changed

+49
-10
lines changed

command/shopt.md

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,55 @@ shell选项:指定要操作的shell选项。
3030

3131
```shell
3232
shopt #输出所有可以设置的shell操作选项
33-
cdable_vars off
34-
cdspell off
35-
checkhash off
36-
checkwinsize on
37-
cmdhist on
38-
dotglob off
39-
execfail off
40-
expand_aliases on
41-
extdebug off
42-
...
33+
autocd off
34+
cdable_vars off
35+
cdspell off
36+
checkhash off
37+
checkjobs off
38+
checkwinsize on
39+
cmdhist on
40+
compat31 off
41+
compat32 off
42+
compat40 off
43+
compat41 off
44+
compat42 off
45+
compat43 off
46+
complete_fullquote on
47+
direxpand off
48+
dirspell off
49+
dotglob off
50+
execfail off
51+
expand_aliases on
52+
extdebug off
53+
extglob off
54+
extquote on
55+
failglob off
56+
force_fignore on
57+
globasciiranges off
58+
globstar off
59+
gnu_errfmt off
60+
histappend on
61+
histreedit off
62+
histverify off
63+
hostcomplete on
64+
huponexit off
65+
inherit_errexit off
66+
interactive_comments on
67+
lastpipe off
68+
lithist off
69+
login_shell on
70+
mailwarn off
71+
no_empty_cmd_completion off
72+
nocaseglob off
73+
nocasematch off
74+
nullglob off
75+
progcomp on
76+
promptvars on
77+
restricted_shell off
78+
shift_verbose off
79+
sourcepath on
80+
syslog_history off
81+
xpg_echo off
4382
```
4483

4584
如图上所示,选项"cdspell"的状态为"off",即关闭cd拼写检查选项。现在,可以使用shopt命令将其开启,输入如下命令:

0 commit comments

Comments
 (0)