From 7c9ebfc0be46120a64421b81965eff9d48585599 Mon Sep 17 00:00:00 2001 From: rparwaiz <78734549+rparwaiz@users.noreply.github.com> Date: Thu, 2 Dec 2021 11:08:52 +0000 Subject: [PATCH] Update bash.sh --- languages/bash.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/languages/bash.sh b/languages/bash.sh index 21204cd..c0eeae1 100644 --- a/languages/bash.sh +++ b/languages/bash.sh @@ -206,6 +206,10 @@ read -p "prompt" # same as above but outputs a prompt to ask user fo column -t # display info in pretty columns (often used with pipe) let = # performs mathematical calculation using operators like +, -, *, /, % export VARNAME=value # defines an environment variable (will be available in subprocesses) +export -f # Exports function 'funcname' +export var1="var1 value" # Export and assign in the same statement +export # Copy Bash variable +declare -x # Copy Bash variable array[0]=valA # how to define an array array[1]=valB