mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 21:15:26 +02:00
test: add Dutch translation (#13192)
This commit is contained in:
parent
67b90a82bb
commit
6fea01f101
1 changed files with 25 additions and 0 deletions
25
pages.nl/common/test.md
Normal file
25
pages.nl/common/test.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# test
|
||||
|
||||
> Controleer bestandstypen en vergelijk waarden.
|
||||
> Retourneert 0 als de voorwaarde waar is, 1 als de voorwaarde onwaar is.
|
||||
> Meer informatie: <https://www.gnu.org/software/coreutils/test>.
|
||||
|
||||
- Test of een gegeven variabele gelijk is aan een gegeven string:
|
||||
|
||||
`test "{{$MY_VAR}}" = "{{/bin/zsh}}"`
|
||||
|
||||
- Test of een gegeven variabele leeg is:
|
||||
|
||||
`test -z "{{$GIT_BRANCH}}"`
|
||||
|
||||
- Test of een bestand bestaat:
|
||||
|
||||
`test -f "{{pad/naar/bestand_of_map}}"`
|
||||
|
||||
- Test of een map niet bestaat:
|
||||
|
||||
`test ! -d "{{pad/naar/map}}"`
|
||||
|
||||
- Als A waar is, voer dan B uit, of C in het geval van een fout (let op dat C mogelijk wordt uitgevoerd, zelfs als A mislukt):
|
||||
|
||||
`test {{voorwaarde}} && {{echo "true"}} || {{echo "false"}}`
|
Loading…
Add table
Reference in a new issue