Skip to content

double handling of dollar signs in variables in .env file #2751

@UpcraftLP

Description

@UpcraftLP

if you use an .env file to specify config variables, and those variables happen to contain dollar signs $, then rover applies two different mechanisms for interpolating those variables:

So variables must be escaped TWICE, in different ways: first the value must be enclosed in single quotes, and then each dollar sign needs to be doubled:
MY_ENV_VAR='some$$api$$key'

Ideally, only one of those mechanisms would apply, and be documented which.

Rover Info:
Version: 0.36.2
Install Location: %HOMEPATH%\.rover\bin\rover.exe
OS: Windows 10.0.26100 (Windows 11 Enterprise) [64-bit]
Shell: Powershell 7.5.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞triageissues and PRs that need to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions