I am trying to store the string "-e test" in a bash variable. For some reason, it removes the "-e " part from the string. I cannot figure out how to escape this.
Test script:
var="-e test"
echo $var
Expected output:
-e test
Actual output:
test