Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declare, typeset: add Dutch translation #15314

Merged
merged 8 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions pages.nl/common/declare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# declare

> Declareer variabelen en geef ze attributen.
> Meer informatie: <https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins>.
sebastiaanspeck marked this conversation as resolved.
Show resolved Hide resolved

- Declareer een string variable met de gespecificeerde waarde:
sebastiaanspeck marked this conversation as resolved.
Show resolved Hide resolved

`declare {{variable}}="{{waarde}}"`

- Declareer een integer variable met de gespecificeerde waarde:

`declare -i {{variable}}="{{waarde}}"`

- Declareer een array variable met de gespecificeerde waarde:

`declare -a {{variable}}=({{item_a item_b item_c}})`

- Declareer een associatieve array variable met de gespecificeerde waarde:

`declare -A {{variable}}=({{[sleutel_a]=item_a [sleutel_b]=item_b [sleutel_c]=item_c}})`

- Declareer a readonly string variable met de gespecificeerde waarde:

`declare -r {{variable}}="{{waarde}}"`

- Declareer a globale variable binnen een functie met de gespecificeerde waarde:
sebastiaanspeck marked this conversation as resolved.
Show resolved Hide resolved

`declare -g {{variable}}="{{waarde}}"`
sebastiaanspeck marked this conversation as resolved.
Show resolved Hide resolved
7 changes: 7 additions & 0 deletions pages.nl/common/typeset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# typeset

> Dit commando is een alias van `declare`.
- Bekijk de documentatie van het originele commando:

`tldr declare`
Loading