Skip to content

issues with .env with spaces and then the lack of a trailing newline #411

@paperclover

Description

@paperclover

env files sometimes chop off the last character off when there is a space in the value, but not followed by a newline. here are my findings. pay attention to the trailing new line.


case 1: the bug

VARNAME=A B

VARNAME is "A "


case 2: a new line fixing the bug

VARNAME=A B

VARNAME is "A B"


case 3 and 4: bug not present without a space in the value

VARNAME=ABC
VARNAME=ABC

VARNAME is "ABC" in both cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions