Skip to content

Commit

Permalink
doc: Update shopt.md (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
admxj authored Apr 23, 2024
1 parent 764e369 commit c327ee0
Showing 1 changed file with 49 additions and 10 deletions.
59 changes: 49 additions & 10 deletions command/shopt.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,55 @@ shell选项:指定要操作的shell选项。

```shell
shopt #输出所有可以设置的shell操作选项
cdable_vars off
cdspell off
checkhash off
checkwinsize on
cmdhist on
dotglob off
execfail off
expand_aliases on
extdebug off
...
autocd off
cdable_vars off
cdspell off
checkhash off
checkjobs off
checkwinsize on
cmdhist on
compat31 off
compat32 off
compat40 off
compat41 off
compat42 off
compat43 off
complete_fullquote on
direxpand off
dirspell off
dotglob off
execfail off
expand_aliases on
extdebug off
extglob off
extquote on
failglob off
force_fignore on
globasciiranges off
globstar off
gnu_errfmt off
histappend on
histreedit off
histverify off
hostcomplete on
huponexit off
inherit_errexit off
interactive_comments on
lastpipe off
lithist off
login_shell on
mailwarn off
no_empty_cmd_completion off
nocaseglob off
nocasematch off
nullglob off
progcomp on
promptvars on
restricted_shell off
shift_verbose off
sourcepath on
syslog_history off
xpg_echo off
```

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

0 comments on commit c327ee0

Please sign in to comment.