-
Notifications
You must be signed in to change notification settings - Fork 48
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
ls implementation with extras #183
base: main
Are you sure you want to change the base?
Conversation
(rebased over latest |
While I do prefer the output of your version, since it is clearer and easier to read to me, |
If you wanted to add an option (that wouldn't be tested against the GNU version), to give the nicer output, that's fine. The default using the regular options should match. |
makes sense. I'll see what I can do. Also I'm using GNU |
Made some changes to allow the format to look more like GNU. However, there are still significant differences.
If your goal is parity with GNU then this pull request is likely not going to work. No hard feelings. It was fun to write. |
GNU The only other difference was the total blocks line at the top of the GNU version, while yours has (much nicer!) separation of dirs vs files, and total file sizes. Probably the main thing about these tools... the main reason for doing them... is to be able to use them as "drop-in" replacements for the GNU versions. At least by default, or when using the same options as the GNU tools. Extra options are fine (far as I'm concerned). They just need to look/act the same as much as possible when not using extra options. |
ls from GNU coreutils on Linux sorts case-insensitive.
|
It appears Mac's |
Includes most of the usual
ls
features plus some extras like table format, checksums and icons.