Skip to content

sh-dsl cannot unquote environment variable value #281

@fynzhak

Description

@fynzhak

It looks like it's not possible to unquote the environment variable value when using sh-dsl.
For example:

(var bar "asdf")
($ FOO=,bar janet -e "(print (os/getenv `FOO`))")

results in a compilation error:
compile error: error: (macro) expected integer key for symbol in range [0, 0), got 0

I found this a bit surprising given that unquote works elsewhere in the expression.

Is this something we want to support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions