I have seen a line of shell script as follows:local soft_upgrade=${3:-false}What does this mean? I don't know what 3:-false means.
Shell script parameter substitution
shell;shell script;variable substitution
No, it's nothing about array, it's a default value in parameter substitution.If $3 is not set, set soft_upgrade to false, otherwise, set it to $3