Please help me understand and possibly explain this. Suppose I have 2 env variables:
$REL --> foo
$MEL --> bar
Now if I echo $REL$MEL
it works.
If I echo test$REL
, it works.(testfoo)
But why Linux is not able to identify the variable when used like this: $RELtest
?
I understand this looks like the stupidest question but is there a way to tell the system to look for the matching part of the string in env variables already set and replace that part?
I also understand that when doing test$REL
, it is $
that works as an identifier.
If this is not possible then how to explain the limitation?
Any usage example in docs where this is shown prohibited will help me a lot.