Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/quotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ world

上面命令中,Bash 正常情况下会将换行符解释为命令结束,但是换行符在双引号之中就失去了这种特殊作用,只用来换行,所以可以输入多行。`echo`命令会将换行符原样输出,显示的时候正常解释为换行。

双引号的另一个常见的使用场合是,文件名包含空格。这时就必须使用双引号,将文件名放在里面。
双引号的另一个常见的使用场合是,文件名包含空格。这时就必须使用双引号(或单引号),将文件名放在里面。

```bash
$ ls "two words.txt"
Expand Down
4 changes: 2 additions & 2 deletions docs/variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $ echo $PATH

### 自定义变量

自定义变量是用户在当前 Shell 里面自己定义的变量,必须先定义后使用,而且仅在当前 Shell 可用。一旦退出当前 Shell,该变量就不存在了。
自定义变量是用户在当前 Shell 里面自己定义的变量,仅在当前 Shell 可用。一旦退出当前 Shell,该变量就不存在了。

`set`命令可以显示所有变量(包括环境变量和自定义变量),以及所有的 Bash 函数。

Expand Down Expand Up @@ -324,7 +324,7 @@ himBHs

(7)`$@`和`$#`

`$@`和`$#`表示脚本的参数数量,参见脚本一章。
`$#`表示脚本的参数数量,`$@`表示脚本的参数值,参见脚本一章。

## 变量的默认值

Expand Down