On 6/4/2024 11:34 PM, hms--- via Freedos-user wrote:
As per Tom's request, below is a short batch file to show the issue.
It appears that the DIR command prematurely terminates it's listing
without error if a directory bearing the same name is encountered.
As I understand it, the DIR command should make no distinction between
file and directory names?
And now back to work, the procrastinator that I am.
Here's what I did to demonstrate the problem in it's simplest form.
1. Take a clean flash drive and move to that drive.
2. Create a text file named "Q" in the root.
3. Create a batch file named demo.bat with contents below and run it.
CD \
MD A12
CD A12
MD Q
MD DEF
CD \
COPY Q A12\Q
COPY Q A12\DEF
4. Type command "DIR Q /S /B" Result below.
File Q is NOT shown in directory DEF.
f:\Q
f:\a12\q\Q
5. Type command "DIR Q. /S /B" Result below.
File Q is NOT shown in directory DEF.
f:\Q
f:\a12\q.\Q
I just did this test right now, but on my system (recent, almost
"virgin" FreeDOS 1.3 install on a Dell laptop) and it showed that Q text
file in both the Q and the DEF subdirectory...
(only difference is that I tested this on the C: drive of that laptop)
C:\>dir q /s /b
C:\Q
C:\A12\Q
C:\A12\Q\Q
C:\A12\DEF\Q
C:\> dir q. /s/b
C:\Q
C:\A12\Q
C:\A12\Q\Q
C:\A12\DEF\Q
So, what exact version do you use and what modifications (like alias for
example to the DIR command) has you made?
Ralf
_______________________________________________
Freedos-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-user