FDOS / kernel

FreeDOS kernel - implements the core MS-DOS/PC-DOS (R) compatible operating system. It is derived from Pat Villani's DOS-C kernel and released under the GPL v2 or later. Please see http://www.freedos.org/ for more details about the FreeDOS (TM) Project.
http://kernel.fdos.org/
GNU General Public License v2.0
811 stars 144 forks source link

fdconfig.sys SHELL=4debug.com will try to load debug.com #121

Closed ecm-pushbx closed 9 months ago

ecm-pushbx commented 9 months ago

With a file named 4debug.com on the boot drive and shell=4debug.com in the fdconfig.sys file, the following interaction happens at boot time:

Bad or missing Command Interpreter: debug.com
Enter the full shell command line: 4debug.com
-

As seen, entering the full filename including the leading digit does allow to load the shell. But the kernel first tries to load the shell with the digit stripped. Using a name like ldebug.com without the leading digit works as expected.

If I recall, this was first reported on one of the mailing lists by a user trying to load 4DOS. I can't look that up right now however.

I suspect that the digit is read or discarded like a menu selector digit. I have not studied this in detail however. It doesn't explain why the shell= line does take effect even though it processes the 4 however.

ecm-pushbx commented 9 months ago

Workaround: Insert a backslash, which has no effect but will avoid this problem.

ecm-pushbx commented 9 months ago

The original report was actually on our forum, https://www.bttr-software.de/forum/forum_entry.php?id=21218

PerditionC commented 9 months ago

fixed by pr#129