From acb515c1716b06ebf3b3561a10218ad4d4585527 Mon Sep 17 00:00:00 2001 From: rparwaiz <78734549+rparwaiz@users.noreply.github.com> Date: Tue, 7 Dec 2021 16:53:56 +0000 Subject: [PATCH] Update bash.sh typeset -l # makes variable local - must be an interger declare -l # uppercase values in the variable are converted to lowercase declare -A # makes it an associative array --- languages/bash.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/languages/bash.sh b/languages/bash.sh index 21204cd..b1ecce3 100644 --- a/languages/bash.sh +++ b/languages/bash.sh @@ -223,6 +223,8 @@ declare -F # displays function names without definitions declare -i # the variables are treated as integers declare -r # makes the variables read-only declare -x # marks the variables for export via the environment +declare -l # uppercase values in the variable are converted to lowercase +declare -A # makes it an associative array ${varname:-word} # if varname exists and isn't null, return its value; otherwise return word ${varname:word} # if varname exists and isn't null, return its value; otherwise return word @@ -248,6 +250,7 @@ ${#varname} # returns the length of the value of the variable a $(UNIX command) # command substitution: runs the command and returns standard output +typeset -l # makes variable local - must be an interger ############################################################################## # FUNCTIONS