Sfoglia il codice sorgente

Argument special characters

master
Anthony Fadly 1 anno fa
parent
commit
0fc7b6172c
1 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  1. 18
    0
      sep21-conditionals.md

+ 18
- 0
sep21-conditionals.md Vedi File

@@ -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…
Annulla
Salva