Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic ls implementation #31

Merged
merged 10 commits into from
Apr 19, 2024
Merged

Add basic ls implementation #31

merged 10 commits into from
Apr 19, 2024

Conversation

Sigmanificient
Copy link
Collaborator

@Sigmanificient Sigmanificient commented Apr 19, 2024

Based on my ls school project source, I recreated a small ls utility that features the following flags:

  • a: do not ignore entries starting with .
  • l: use a long listing format
  • R: list subdirectories recursively
  • d: list directories themselves, not their contents
  • r: reverse order while sorting
  • t: sort by time, newest first

@Sigmanificient Sigmanificient linked an issue Apr 19, 2024 that may be closed by this pull request
Copy link
Owner

@proh14 proh14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the macros for the command info. checkout echo for details on this
use strerror instead of a switch for errno.
preferably do not use __attribute__((nonnull)) and does kind of stuff
Add copyright notice to manpage
format the code with clang-format if not formated.
thx ;)

Copy link
Owner

@proh14 proh14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good :D thx

@proh14 proh14 merged commit d105d4e into main Apr 19, 2024
1 check passed
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.

ls base
2 participants