Skip to content

Conversation

@ecm-pushbx
Copy link
Contributor

Changing to a drive or running DIR with only a drive letter and colon didn't work. (DIR with drive letter, colon, backslash did work already.) Without this patch applied:

C:\>]:
Bad command or filename - "]:".
C:\>dir ]:
File not found. - ']:'
C:\>dir ]:\
 Volume in drive ] is SRDXMS 2.10
 Directory of ]:\

LDEBUG   COM        94,208  09-19-25  6:35p
         1 file(s)         94,208 bytes
         0 dir(s)         948,224 bytes free

With this patch applied:

C:\>]:
]:\>dir ]:
 Volume in drive ] is SRDXMS 2.10

 Directory of ]:\

LDEBUG   COM        94,208  09-19-25  6:35p
         1 file(s)         94,208 bytes
         0 dir(s)         948,224 bytes free

Changing to a drive or running DIR with only a drive letter and
colon didn't work. (DIR with drive letter, colon, backslash did
work already.) Without this patch applied:

C:\>]:
Bad command or filename - "]:".
C:\>dir ]:
File not found. - ']:'
C:\>dir ]:\
 Volume in drive ] is SRDXMS 2.10
 Directory of ]:\

LDEBUG   COM        94,208  09-19-25  6:35p
         1 file(s)         94,208 bytes
         0 dir(s)         948,224 bytes free

With this patch applied:

C:\>]:
]:\>dir ]:
 Volume in drive ] is SRDXMS 2.10

 Directory of ]:\

LDEBUG   COM        94,208  09-19-25  6:35p
         1 file(s)         94,208 bytes
         0 dir(s)         948,224 bytes free
@ecm-pushbx
Copy link
Contributor Author

Test case is to run MS-DOS v7.10 with config.sys LASTDRIVE=32 or lDOS 2025 September (today's build (link not yet present)) with the kernel command line append lastdrive 32 and use a current DEVLOAD to load today's srdisk (link not yet present) as in devload /v /h /d] srdisk.exe xms then srdisk 1024.

Drive letters like ]: work fine now. `: (backtick as drive letter) only works on MS-DOS v7.10 with a patch, run like ldebug /t /cytestlett.sld then q to quit the debugger. No such problem on lDOS, as mentioned in the changeset message of the revision adding kernel support for LASTDRIVE=32.

@ecm-pushbx
Copy link
Contributor Author

Drive letter, colon, program name also fails prior to this patch. Fine with a backslash:

C:\>`:ldebug
File not found. - '`:ldebug.COM'
Bad command or filename - "`:ldebug".
C:\>`:ldebug.com
File not found. - '`:ldebug.com'
Bad command or filename - "`:ldebug.com".
C:\>`:\ldebug
-q
C:\>

Working with this patch:

C:\>newfcom

FreeCom version 0.87 - GNUC - XMS_Swap [Sep 26 2025 20:13:29]
C:\>`:ldebug
-q
C:\>

ecm-pushbx added a commit to ecm-pushbx/dosemu2 that referenced this pull request Sep 27, 2025
lredir actually already worked to create or delete drives up to and
including drive `: but beyond [: they were inaccessible. [: itself
worked only partially (probably no int 2Fh function 110Ch). Now mfs
supports all possible drives as desired.

This requires setting eg LASTDRIVE=32 in config.sys or ldos.ini,
or for lDOS only running with `append lastdrive 32` in the kernel
command line.

Test cases:

C:\>type testmfs.bat
lredir %1: /home/[user]/proj/devload
lredir
dir %1:
lredir -d %1:

The DIR command in this batch file requires the FreeCOM patch in
FDOS/freecom#180

Different test case:

ldebug
ext extlib.eld dosspace `:

This runs DOS interrupt 21h function 36h, which in turn calls
int 2Fh function 110Ch.

Some uses of the very last drive letter, `:, require a patch for
working under MS-DOS v7: https://pushbx.org/ecm/test/20250926.3/
@PerditionC PerditionC merged commit 29b197f into FDOS:master Sep 27, 2025
6 checks passed
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.

2 participants