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

Implement TREE.COM command #2366

Merged
merged 3 commits into from Mar 28, 2023
Merged

Implement TREE.COM command #2366

merged 3 commits into from Mar 28, 2023

Conversation

FeralChild64
Copy link
Collaborator

  1. Implemented command TREE, with various extensions from DR-DOS / FreeDOS
  2. Reworked commands LS and DIR, so that they now share parts of code with TREE. As a result:
  • DIR now uses our MORE text engine, giving nicer display with /p option
  • DIR command options /os and /o-s now work correctly - they handle directories as objects of size 0, like in MS-DOS (previous by-size sorting code didn't check attributes at all, taking whatever was found in the size field)

@FeralChild64 FeralChild64 added the enhancement New feature or enhancement of existing features label Mar 26, 2023
@FeralChild64 FeralChild64 self-assigned this Mar 26, 2023
src/dos/program_tree.cpp Outdated Show resolved Hide resolved
src/dos/program_tree.cpp Outdated Show resolved Hide resolved
src/dos/program_tree.cpp Outdated Show resolved Hide resolved
src/dos/program_tree.h Outdated Show resolved Hide resolved
src/dos/program_tree.h Outdated Show resolved Hide resolved
include/dos_system.h Outdated Show resolved Hide resolved
@kcgen
Copy link
Member

kcgen commented Mar 27, 2023

Just wanted to confirm that it's running on my side, and passing UBSAN and ASAN. Just some minor comments.

@FeralChild64 FeralChild64 requested a review from kcgen March 27, 2023 20:34
Copy link
Member

@kcgen kcgen left a comment

Choose a reason for hiding this comment

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

This is working great, @FeralChild64!
Looking forward to having TREE available (I already use it a lot on the Linux side), and having it tied into more is a real treat!

@kcgen
Copy link
Member

kcgen commented Mar 28, 2023

All comments addressed and tests passing; merging.

@kcgen kcgen merged commit d0e04da into main Mar 28, 2023
58 checks passed
@FeralChild64 FeralChild64 deleted the fc/tree-1 branch March 29, 2023 08:18
@johnnovak johnnovak added the DOS Issues related to DOS integration or DOS commands label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DOS Issues related to DOS integration or DOS commands enhancement New feature or enhancement of existing features
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants