Skip to content

feat(builtins): implement ls -F (classify) option#924

Merged
chaliy merged 2 commits intomainfrom
feat/issue-913-ls-classify
Mar 31, 2026
Merged

feat(builtins): implement ls -F (classify) option#924
chaliy merged 2 commits intomainfrom
feat/issue-913-ls-classify

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 31, 2026

Summary

  • Adds -F / --classify option to ls builtin
  • Appends indicator characters: / for directories, * for executables, @ for symlinks, | for FIFOs
  • Works with both short and long listing formats

Test plan

  • ls_classify_directory — directories get / suffix
  • ls_classify_executable — executable files get * suffix
  • ls_classify_file_arg — works with file arguments
  • ls_classify_long — works with -l long format
  • All existing ls tests still pass
  • Clippy clean

Closes #913

chaliy added 2 commits March 31, 2026 19:08
Appends indicator characters to filenames: / for directories, * for
executables, @ for symlinks, | for FIFOs. Supports both -F short flag
and --classify long option. Works with -l long format.

Closes #913
@chaliy chaliy merged commit 55ce92b into main Mar 31, 2026
27 checks passed
@chaliy chaliy deleted the feat/issue-913-ls-classify branch March 31, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(builtins): implement ls -F (classify) option

1 participant