Skip to content

Command substitution improperly expands double-quotes #530

@mrj

Description

@mrj

Parsing the file

x='"a"'
y="$(echo "$x")"

gives

{"x" => "\"a\"", "y" => "a"}

when the real Bash gives the same for echo $x and echo $y.

Because of this, Json objects can only be used in parsed commands by backslashing every double quote.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions