im trying to learn bash right now, came across a script and im not 100% sure if i read it right.
source_dir_123=${SOURCE_DIR:-/tmp}
echo source_dir_123=$source_dir_123
What is happening here? I guess this is some kinda variable assigment, but it looks weird to me. What type of assigment/operation happens here? Any specific name of these types of assignments? Sorry for a newbish question, but i dont get it why would you use these kinda of assignments instead of something more straight forward like
source_dir_12="/tmp"