Forrest logo
back to context overview

typeset

List of commands for typeset:

  • typeset:tldr:0ea3a typeset: Declare a readonly variable with the specified value.
    $ typeset -r ${variable}="${value}"
    try on your machine
    explain this command
  • typeset:tldr:32abf typeset: Declare an array variable with the specified value.
    $ typeset ${variable}=(${item_a item_b item_c})
    try on your machine
    explain this command
  • typeset:tldr:68c30 typeset: Declare an associative array variable with the specified value.
    $ typeset -A ${variable}=(${[key_a]=item_a [key_b]=item_b [key_c]=item_c})
    try on your machine
    explain this command
  • typeset:tldr:9b43e typeset: Declare a string variable with the specified value.
    $ typeset ${variable}="${value}"
    try on your machine
    explain this command
  • typeset:tldr:fc892 typeset: Declare an integer variable with the specified value.
    $ typeset -i ${variable}="${value}"
    try on your machine
    explain this command
back to context overview