When I run this bash code
TEST_VAR=test
echo "This is a $TEST_VAR end of the test"
on https://www.mycompiler.io/de/new/bash I get the output ‘This is a test end of the test’ (what I am expecting)
when I run it on https://www.onlinegdb.com/online_bash_shell I get the output: ‘ end of the test’
Unfortunately, when I run my script on my machine I get the second behavior and I just dont understand whats happening, sry if this is trivial but I couldnt find a solutions and the AIs Ive asked also didnt know.