Are you trying to get the shell to expand $PATH but not Julia?

On Wed, Nov 2, 2016 at 5:40 AM, Christian Theil Have <
christiantheilh...@gmail.com> wrote:

> Hi,
>
> I've been trying to create a shell command that refers to an environment
> variable, e.g.,
>
> echo $PATH
>
> Julia will interpolate $ in shell commands in backticks to Julia
> variables, i.e., `echo $PATH`, will look for a Julia variable PATH.
> What can I do if I really want to insist having a shell command that
> includes a (non-quoted) dollar-sign? Currently,
> my workaround is `sh -c "echo \$PATH"`, but this is not really
> satisfactory.
>
> Best,
> Christian
>

Reply via email to