I may be missing something but would it be possible to use $
(or appropriate symbol) in a Cmd
object in the “shell sense” as opposed to the julia interpolation sense? As a slightly stupid example:
run(`echo $PWD`)
would return the path. Of course that would be useless and pwd()
is the obvious choice but it’s just an analogy. Executing the snippet above gives an error because PWD
is not defined in the environment. Escaping the $
sign with single quotes or \
just shows "$PWD"
. Is it by design that we can’t use $
in another way than the string interpolation?