Answers for "bash not setting variable"

0

bash set var if not set

${parameter:-word}
    # If parameter is unset or null, the expansion of word is substituted. 
    # Otherwise, the value of parameter is substituted.
Posted by: Guest on December-08-2021
0

shell script variables not working

#shell does not accept spaces so:
MYVAR = 12 #is NOT correct
MYVAR=12 #is correct
Posted by: Guest on November-16-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language