Parcourir la source

Argument special characters

master
Anthony Fadly il y a 1 an
Parent
révision
0fc7b6172c
1 fichiers modifiés avec 18 ajouts et 0 suppressions
  1. 18
    0
      sep21-conditionals.md

+ 18
- 0
sep21-conditionals.md Voir le fichier

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

Chargement…
Annuler
Enregistrer