Skip to content

Duplicate error about non-existent directory #262

@wbyoung

Description

@wbyoung

Platform

  • Operating system and version? Fedora 42
  • Shell and version? zsh 5.9 (x86_64-redhat-linux-gnu)
  • autoenv installation method: git & sourced
  • autoenv version: b030c19

Description

When changing to a non-existent directory via cd, I get duplicate error messages:

% source ~/.dotfiles/repos/autoenv/activate.sh 

% cd no_dir_here
autoenv_cd:chdir:2: no such file or directory: no_dir_here
autoenv_cd:cd:2: no such file or directory: no_dir_here

% cd ~/.dotfiles/repos/autoenv 
% git rev-parse --short HEAD
b030c19

Expected behavior

I would expect the error to be more like what appears without the tool, i.e.:

% cd no_dir_here
cd: no such file or directory: no_dir_here

Additional context

I started my zsh session via zsh -f to ensure I wasn't getting conflicts from other tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions