浏览代码

Argument special characters

master
Anthony Fadly 1年前
父节点
当前提交
0fc7b6172c
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18
    0
      sep21-conditionals.md

+ 18
- 0
sep21-conditionals.md 查看文件

@@ -14,3 +14,21 @@ Wrong: `ls /tmp/foo bar`
Correct: `ls /tmp/foo\ bar`

Also Correct: `ls "/tmp/foo bar"`

## Argument special characters

```
$ test -z "hello"

$# = 2

$@ = "-z" "hello"

$* = "-z hello"

$0 = test

$1 = -z

$2 = "hello"
```

正在加载...
取消
保存