Closed MaxGyver83 closed 6 months ago
janet-sh isn't trying to fully emulate a shell, so lots of shell features like $variables
, foo.{c,h}
expansion, subshells etc aren't implemented. If you want to read the value of an environment variable, you can use regular (os/getenv "PWD")
, and pass that off to janet-sh:
(sh/$ echo ,(os/getenv "PWD"))
I see. Thank you for this clarification!
This doesn't work as expected (by me):
It behaves like
echo '$PWD'
. How can I run anecho "$PWD"
?