#Setting $PATH

1 messages · Page 1 of 1 (latest)

stuck moth
#

I am not sure what I am doing wrong here and what these 97 values are with with-env-variable. Works fine as a module.

vocal void
#

I think your shell is parsing ${PATH} before the command is sent to dagger

stuck moth
#

I am getting the same error if I try from standard command terminal as well. Without expansion no issues

vocal void
stuck moth
#

I get the same error in Dagger shell

wheat schooner
#

Dagger Shell also requires single quotes for the same reason

orchid island
#

Just from a glance I don't think --expand true is valid. It should either be --expand or --expand=true. It's a known footgun from pflag with boolean flags.

stuck moth
#

Thank you @vocal void @wheat schooner @orchid island for your help. I had to use single quotes and remove the true on the expand parameter. I also had to create a settings.json to force VSCode to use Command Prompt on Windows instead of PowerShell.