Skip to content

SUP_ENV needs escaping #154

@ghost

Description

SUP_ENV is not escaped:

sup -D -e HELLO="1 2 3" local env
fra@localhost | bash: line 0: export: `2': not a valid identifier
fra@localhost | bash: line 0: export: `3': not a valid identifier
fra@localhost | + echo SUP_ENV is '-e HELLO=1'
fra@localhost | SUP_ENV is -e HELLO=1
commands:
  env:
    desc: print env
    run: echo SUP_ENV is "$SUP_ENV"

this one does not break but the quoting is lost

sup -D -e HELLO="'""1 2 3""'" local env

this one does not break and preserves quoting

sup -D -e HELLO='"'"'1 2 3'"'"' local env

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