瀏覽代碼

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"
```

Loading…
取消
儲存