Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

save & restore environment (Developers)

posted by bencollver Homepage, 28.02.2026, 15:20

> > I ran into a situation in SvarDOS where the EDR-DOS command interpreter
> [...]
>
> Is it really the EDR command.com or SvarCOM, the default SvarDOS command
> interpreter?

It was really EDR command.com, and here's how i reproduced it:

Downloaded and extracted the TCC sources:

    C:\>curl -O gopher://tilde.pink/9/~bencollver/files/dos386/devel/tcc/src.zip
   
    C:\>unzip src.zip


Verify shell

    C:\>ver
   
    Enhanced DR-DOS based on Caldera OpenDOS 7.01
    Copyright (c) 1976, 1997 Caldera, Inc. All rights reserved.
    Patches to original OpenDOS source code Copyright (c) 2002-2011 Udo Kuhnt
   
    C:\>command.com /? | find "DOS"
    Enhanced DR-DOS based on Caldera OpenDOS 7.01
    Patches to original OpenDOS source code Copyright (c) 2002-2011 Udo Kuhnt
   
    C:\>find "SHELL=" config.sys
    ---------------- CONFIG.SYS
    SHELL=C:\COMMAND.COM C:\ /E:2048 /P


Configure Watcom build environment

    C:\>cd watcom
   
    C:\WATCOM>owsetenv
    Open Watcom Build Environment
   
    C:\WATCOM>cd ..


Configure HX

    C:\>set DPMILDR=136
   
    C:\>set HDPMI=32
   
    C:\>path %PATH%;C:\HX\BIN
   
    C:\>hxldr32
    HXLdr32 V1.13 Installed. Win32 console apps may possibly run now in DOS


Edit TCC win32\mkall.bat
Change one line.
OLD: set CALL=\command.com /c
NEW: set CALL=call

    C:\>cd src\win32
   
    C:\SRC\WIN32>oed mkall.bat
    1921
    /set CALL=\\command.com/s/.*/set CALL=call/p
    set CALL=call
    w
    1910
    q


Compile TCC
Takes a while for the script to complete or fail.

    C:\SRC\WIN32>mkall.bat

Verify duplicate variables in environment

    C:\SRC\WIN32>set | find "D="
    CD=C:\SRC\WIN32
    D=-dTCC_TARGET_PE -dTCC_TARGET_I386
    D=-DTCC_TARGET_PE -DTCC_TARGET_I386
    D=-DTCC_TARGET_PE -DTCC_TARGET_I386

    C:\>

 

Complete thread:

Back to the forum
Board view  Mix view
23247 Postings in 2191 Threads, 405 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum