Chinese pages: correct Chinese punctuation (#5240)

This commit is contained in:
bl-ue
2021-08-02 04:41:09 -04:00
committed by GitHub
parent eaef3b4d21
commit 289e30dfb3
373 changed files with 1817 additions and 1810 deletions

View File

@@ -1,12 +1,12 @@
# case
> case ... esac 与其他语言中的 switch ... case 语句类似,是一种多分枝选择结构.
> case ... esac 与其他语言中的 switch ... case 语句类似,是一种多分枝选择结构
> 更多信息: <https://manned.org/case>.
- 通过字符串字面量判断执行分支:
- 通过字符串字面量判断执行分支
`case {{入参变量}} in {{字符字面量1}} {{执行语句块1}} ;; {{字符字面量2}}) {{执行语句块2}} ;; *) {{默认执行语句块}} ;; esac`
- 搭配通配符进行匹配,判断执行分支:
- 搭配通配符进行匹配,判断执行分支
`case {{入参变量}} in {{通配符或者字符字面量}}) {{执行语句块1}} ; ;; {{通配符或者字符字面量}}) {{执行语句块1}}; ;; *) {{echo "what?"}}; ;; esac`