Skip to content

Cross-platform environment variable signature, @ #2

@mottosso

Description

@mottosso

On Unix, environment variables are referenced via the $ character. On windows, its %. Which means we can't make use of either one in a cross-platform compatible library.

# Posix
$ echo $ROOTDIR
'/studio'

# Windows
$ echo %ROOTDIR%
'c:\studio'

How about @?

$ dash @ROOTDIR
'c:\studio'

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