Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

'ls -l' in symbolic link directory on Windows lists the link itself instead of the target directory contents #7873

Copy link
Copy link
Open
@chengwu26

Description

@chengwu26
Issue body actions

​Description​​

When using ls -l inside a symbolic link directory (created as a symlink to another directory) on ​​Windows​​, the command only displays the symbolic link itself rather than the contents of the target directory. This behavior does NOT occur when running ls without the -l flag.

# ls -l
total 0
dr-xr-xr-x 1 somebody somegroup 0 May  1 22:30 apps
drwxrwxrwx 1 somebody somegroup 0 Mar 23 14:15 media
lr-xr-xr-x 1 somebody somegroup 0 Mar 23 14:36 pkgs -> 'E:\pkgs'
lr-xr-xr-x 1 somebody somegroup 0 May  1 23:21 scoop -> '.\apps\scoop'

# cd scoop && ls -l
lr-xr-xr-x 1 somebody somegroup 0 May  1 23:21 . -> '.\apps\scoop'

# ls
apps  buckets  modules  persist  scoop.db  shims  workspace

​Environment​​

OS infomation

版本 Windows 11 专业版
版本号 24H2
安装日期 ‎2025/‎2/‎16
操作系统版本 26100.3915
体验 Windows 功能体验包 1000.26100.83.0

ls version

ls 0.0.30

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.