In the ruby script it is necessary to execute bash code with the substitution of a rubish variable. How can I do that? Now I torment designs of a type:
test = "string" system 'echo $("#{test}")'
It is advisable not to take bash into a separate script with passing variables to it, but to execute it via system.