Category Archives: Shell scripts
Use := to Assign a Default Value to an Unset Variable
You can change the value of a null or unset variable to its default in a script using the := modifier: ${name:=default} When the shell expands the expression ${name:=default}, it sets the value of name to the expanded value of … Continue reading
Posted in bash, Shell scripts
Comments Off on Use := to Assign a Default Value to an Unset Variable