a=A; echo $aBut are you just as sure here?
a=A; b=B; echo $a.$b
That depends on the shell, you are using. So I suggest you better write it this way:
a=A; b=B; echo ${a}.${b}Enclosing variable names in curly braces is quite often a good idea.
I am available for hire as a software freelancer – telecommuting, Europe, the Americas, Middle East, … My blog is *my* blog. You have to be either rather nice for your comments to get through here - or *rather* beautiful.
a=A; echo $aBut are you just as sure here?
a=A; b=B; echo $a.$b
a=A; b=B; echo ${a}.${b}Enclosing variable names in curly braces is quite often a good idea.
No comments:
Post a Comment