I am trying to pass an argument to a cmdline tool, which looks like the following:
./tool --device '(xyz-123)'
where '()' is required by the tool, and xyz-123 is stored in a variable $var where I get from another function.
If I hardcode '(xyz-123)', the tool works fine, but when I do ./tool --device '($var)'
, it throws an error:
File "<string>", line 1
tool'("xyz-123")'
^
SyntaxError: invalid syntax