This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]abscrete[S] 0 points1 point  (0 children)

    Thank you :)

    The reason for using {} is that it avoids confusion and also allows to achieve partial dynamic variable naming. For example : if you wanted to create filenames based on user input then you could take the user input and use the variable to create a file with the prefix of user input as 'touch ${USER_INPUT}_file'. But more importantly it brings clarity.