Compare the difference in output in the following lines:
two=2 print one$twothree print one${two}threeThere is no variable named "twothree", so ksh defaults it to an empty value, for the first print line. However, when you use braces to explicitly show ksh {this is the variable name}, it understands that you want the variable named "two", to be expanded in the middle of those other letters.
No comments:
Post a Comment