prefix-dev / shell

The ultimate cross-platform, bash-like shell
MIT License
63 stars 9 forks source link

Allow environment variables inside "". #130

Closed certik closed 1 month ago

certik commented 2 months ago

This works:

~$ echo $PATH
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Windows\system32;C:\Win...

This does not:

~$ echo "$PATH"

~$

The quotes are however needed for spaces to work (such as in Program Files) when assigning to a variable (such as appending to $PATH).

certik commented 2 months ago

Note that this works:

$ echo "$(uname)"
Windows_NT

So we do some substitutions, just not environment variables yet.