space char directly after var in bash

In bash space is used to determine the end of a variable ,

for example when you launch

this will display abcd ef ,if you try to to display abcdef you cant do echo $varef

the solution to this little problem is : is to use curly brackets.

will display abcdef

Leave a Comment

Your email address will not be published. Required fields are marked *