Let's say there is one bash variable
run1 = "date"
I need to execute dateon
$ {run1}
And it works as it prints the current time. But if I put two commands in a variable,
run2 = "date; echo foo"
I can’t execute the commands stored in the variable run2since it ${run2}complains
date ;: command not found
source
share