-- Leo's gemini proxy

-- Connecting to freeshell.de:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-GB

declare


> Declare variables and give them attributes.

More information.


Declare a string variable with the specified value:

declare {variable}="{value}"

Declare an integer variable with the specified value:

declare -i {variable}="{value}"

Declare an array variable with the specified value:

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

Declare an associative array variable with the specified value:

declare -A {variable}=({[key_a]=item_a [key_b]=item_b [key_c]=item_c})

Declare a readonly string variable with the specified value:

declare -r {variable}="{value}"

Declare a global variable within a function with the specified 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



-- Response ended

-- Page fetched on Tue May 21 06:00:22 2024