Skip to content

In non-existent directory, reloading shell prompt -> error LoadConfig() Getwd failed: "getwd: no such file or directory" #455

@rlue

Description

@rlue

Issue description

When the current working directory does not exist, loading the shell prompt (e.g., by hitting <Enter>) causes the following error to appear:

direnv: error LoadConfig() Getwd failed: "getwd: no such file or directory"

Steps to reproduce

$ mkdir foo
$ cd foo
$ rmdir $(pwd)
direnv: error LoadConfig() Getwd failed: "getwd: no such file or directory"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions