Skip to content

error spamming when folder been removed #17817

@dougg0k

Description

@dougg0k

Hi,

If a current directory / folder was removed, the error with recommendation is spammed multiple times.

❯ cd ..   
Error: nu::shell::error

  × $env.PWD points to a non-existent directory
  help: Use `cd` to reset $env.PWD into a good state

Error: nu::shell::error

  × $env.PWD points to a non-existent directory
  help: Use `cd` to reset $env.PWD into a good state

Error: nu::shell::error

  × $env.PWD points to a non-existent directory
  help: Use `cd` to reset $env.PWD into a good state

Error: nu::shell::error

  × $env.PWD points to a non-existent directory
  help: Use `cd` to reset $env.PWD into a good state

Error: nu::shell::error

  × $env.PWD points to a non-existent directory
  help: Use `cd` to reset $env.PWD into a good state

Error: nu::shell::error

  × $env.PWD points to a non-existent directory
  help: Use `cd` to reset $env.PWD into a good state

no pathcdcd

Perhaps, it should support cd .. in case previous folder still exists?

0.111.0

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