💾 Archived View for freeshell.de › tldr › declare.gmi captured on 2024-05-10 at 11:54:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

declare

Declare variables and give them attributes.

More information.

declare {variable}="{value}"
declare -i {variable}="{value}"
declare -a {variable}=({item_a item_b item_c})
declare -A {variable}=({[key_a]=item_a [key_b]=item_b [key_c]=item_c})
declare -r {variable}="{value}"
declare -g {variable}="{value}"
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY