8000 cd follows symlinks · Issue #3350 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

cd follows symlinks #3350

@kozec

Description

@kozec
  • Have you checked if problem occurs with fish 2.3.1?
  • Tried fish without third-party customizations (check sh -c 'env HOME=$(mktemp -d) fish')?

fish version installed (fish --version): fish, version 2.3.1

OS/terminal used: Manjaro Linux, XFCE4-Terminal

Hello. I'm trying to launch application using Wine, what means I need path without non-ascii characters. Since application is installed to directory with Japanese name, I've created symlink and now I can't cd into it - for whatever crazy reason, cd follows that link and ends in original directory.

tom@silver /d/t/.l/s/S/S/common> ls -l Gods\ One\ Day\ World
lrwxrwxrwx 1 tom tom 89 Sep  2 18:52 'Gods One Day World' -> ' 神明的一天世界(God'\''s One Day World)'/
tom@silver /d/t/.l/s/S/S/common> cd Gods\ One\ Day\ World/
tom@silver /d/t/.l/s/S/S/c/ 神明的一天世界(God's One Day World)> pwd
/data/tom/.local/share/Steam/SteamApps/common/ 神明的一天世界(God's One Day World)

Reproduction steps

  1. Launch fish
  2. create any directory (mkdir /tmp/any)
  3. create symlink to that directory (ln -s /tmp/any /tmp/link)
  4. navigate to created link (cd /tmp/link)

Expected results

Fish should navigate to link, /tmp/link

Actual results

Cwd is set to target, /tmp/any

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0