Skip to content

Commit 5a0ba5a

Browse files
committed
docs(set): fix shopt
1 parent 8883b11 commit 5a0ba5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ $ echo $?
398398
这个用法主要用于脚本,供`if`条件结构使用。下面例子是如果打开了这个参数,就执行`if`结构内部的语句。
399399

400400
```bash
401-
if !(shopt -q globstar); then
401+
if (shopt -q globstar); then
402402
...
403403
fi
404404
```

0 commit comments

Comments
 (0)