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 force-pushed the ls branch 12 times, most recently from 003cb94 to 6aea992 Compare April 19, 2024 19:52
@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 ;)

@Sigmanificient Sigmanificient requested a review from proh14 April 19, 2024 21:52
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
@Sigmanificient Sigmanificient deleted the ls branch April 19, 2024 22:03
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