When expanding a shell variable, the braces aren't needed unless the character following the variable name could be interpreted to be part of the name. So: $current_name/$opt produces exactly the same results as ${current_name}/${opt} , but ${current_name}_abc/${opt}_def is not at all the same as $current_name_abc/$opt_def .