From c5b4f01dd3e9c5ea72113c3c311005c1a4919600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Nh=E1=BA=ADt=20Nam?= <69423360+nhatnam1507@users.noreply.github.com> Date: Tue, 8 Mar 2022 21:36:18 +0700 Subject: [PATCH] Update bash.sh --- languages/bash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/bash.sh b/languages/bash.sh index 1b8b16b..d6c09c4 100644 --- a/languages/bash.sh +++ b/languages/bash.sh @@ -232,10 +232,10 @@ declare -l # uppercase values in the variable are converted to 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 ${varname:=word} # if varname exists and isn't null, return its value; otherwise set it word and then return its value ${varname:?message} # if varname exists and isn't null, return its value; otherwise print varname, followed by message and abort the current command or script ${varname:+word} # if varname exists and isn't null, return word; otherwise return null +${varname:offset} # performs substring expansion. It returns the substring of $varname starting at offset to the end ${varname:offset:length} # performs substring expansion. It returns the substring of $varname starting at offset and up to length characters ${variable#pattern} # if the pattern matches the beginning of the variable's value, delete the shortest part that matches and return the rest