Skip to content

Aliases with environment variables not working #684

Description

@glucas

I'm seeing an issue in v1.2.9 that I did not see in my previous 1.2 install. Aliases that refer to environment variables are failing. I can reproduce this with the built-in history alias:

λ history
cat: %CMDER_ROOT%\config\.history: No such file or directory
λ set CMDER_ROOT
CMDER_ROOT=C:\opt\cmder
λ cat %CMDER_ROOT%\config\.history  
... works fine ...

Note that the variable is defined and the file exists. The error message indicates that CMDER_ROOT is not set, so it looks like the cat command is not inheriting the current shell environment. I see the same thing with a number of other aliases that I have. When I switch back to my older cmder installation everything works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions