`ls -l` cannot display files in directory which is symbolic link

Open
#6,467 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start by reproducing the issue with a directory symlink and compare ls -l A with ls -a A and ls A. Trace the Rust implementation of ls for symlinked directories and identify why the long listing produces only the symlink entry. Done means ls -l displays the contents of the symlink target as expected.

Written by the indexing model from the issue text.

Description

U - ls

Thank you for your efforts.

In the directory which is symbolic link of other located directory, ls -l cannot display anything
For example, If the A directory is symbolic link of B directory

>> ls -l A
lrwxrwxrwx 1 somebody somegroup 0 Jun 3 08:38 . -> B

It's all. but ls -a and ls works normally

Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from uutils/coreutils

All issues in uutils/coreutils

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.