Bash Scripting - User Input
What does the expression
${name:-Guest} do in a bash script?${name:-Guest} do in a bash script?variable if it is set and not empty; otherwise, use default.name is set and not empty, it returns name. If name is unset or empty, it returns 'Guest'.name if set; otherwise, it uses 'Guest' as default. -> Option Dname if set; otherwise, it uses 'Guest' as default. [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions