FDOS/freecom

A couple minor DIR issue

shidel opened this issue · 3 comments

First ...

DIR /? - Shows an [/V] in the usage.
DIR /V - returns invalid switch - /V

Second...

DIR /W - Shows wide Listing
DIR /W /W - Shows normal Listing
DIR /W /W /W - Shows wide Listing

/W is working like a toggle.

1/ I raised a PR to remove the non-existent /V option from the string files.

2/ From what I can see all freecom option switches work like a toggle. For example

C:\>ver /r
 
FreeCom version 0.85a - GNUC - XMS_Swap [Nov  6 2022 12:06:15]
DOS version 7.10
FreeDOS kernel - GIT (build 2043 OEM:0xfd) [compiled Nov  5 2022]
C:\>ver /r /r
 
FreeCom version 0.85a - GNUC - XMS_Swap [Nov  6 2022 12:06:15]
C:\>

I can't really see a use for toggling, but others may know better?

Option toggling.

Not all options do it. For example dir /p /p will still pause. That requires dir /p /-p to turn it back off.
So, toggling is not consistent across all options.

Although it may not be important, for things like set alias dirw=dir /w then using dirw /w will turn off wide listings.

Also, MS-DOS does not toggle them. Since it varies from MS-DOS compatibility, perhaps toggling should discussed in the devel forum. I'll write a quick post about it there.

Reopened as the toggling part of the issue has not been addressed yet.