Skip to content

Deal with special char #628

@galindro

Description

@galindro

If the variable value has a special char like $, it isn't correctly evaluated when using SOPS with exec-env no matter if the variable value is double/single quoted in the file or in the shell execution.

Example:

$ sops -d s.env 
MYVAR='$uuhh$jjhh'

# no results are displayed at all
$ sops exec-env s.env "echo \"$MYVAR\""
$ sops exec-env s.env "echo $MYVAR"
$ sops exec-env s.env "echo '$MYVAR'"

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