CLI reports canonical path instead of symlink (logical) path on WSL Linux
- Linguagem predominante
- Shell
- Estrelas
- 11.2k
- Forks
- 1.9k
- Merge médio
- 14h 16min
- PRs com merge (30d)
- 6
Descrição
### Describe the bug
When opening the CLI in a symlink folder on WSL Linux (Ubuntu 24.04), the current folder is reported as the canonical (symlink target) folder instead of the logical path (symlink folder). This breaks workflows that rely on the symlinked path.
### Affected version
_No response_
### Steps to reproduce the behavior
1. Create a symlinked folder: `ln -s /real/path /symlinked/path`
2. Enter the symlinked path: `cd /symlinked/path`
3. Open the CLI in this folder.
4. Observe that the folder reported by the CLI is `/real/path` instead of `/symlinked/path`.
### Expected behavior
The CLI should report the logical (symlink) path (`/symlinked/path`) as the current directory, matching user expectation and shell behavior.
### Additional context
- Operating system: WSL Linux (Ubuntu 24.04)
- This impacts scripts and tools that depend on the reported path being identical to the logical location.
- Workaround: none known.
Guia de contribuição
Direção de pesquisa
Reproduza o problema no WSL Linux com Ubuntu 24.04 usando a configuração de symlink descrita e, em seguida, rastreie onde a CLI determina e informa o diretório atual. Considera-se concluído quando abrir a CLI a partir de /symlinked/path informar esse caminho lógico em vez de /real/path, com o comportamento verificado no ambiente indicado.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- linux, shell, ubuntu
- Domínio
- cli, operating-systems
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Pouca atividade
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 52/100