Unanswered: variable not inserted as filename
I ran into a problem with trying to create a filename in a ksh script (on SunOS 5.9), which has a variable at the beginning.
The resulting filename is then:
cp original_file.log $myvar_copy.log
However, this works:
Resulting filename now:
cp original_file.log copy_$myvar.log
I noticed the same issue also when redirecting output to a file this way:
echo "Test" > $myvar_testfile.log
What's the deal with the position of the parameter?
"My brain is just no good at being a relational Database - my relations suck real bad!"