Skip to content

Comcom causing a file to be created when redirecting to device name with colon #114

@andrewbird

Description

@andrewbird
FDPP/comcom32
C:\>echo longstring > nul:
C:\>dir
 Volume in drive c is /tmp/test-imagedir/dXXXXs/c
 Directory of c:\

2026-01-17 12:25             7 a.txt
2026-01-17 12:24            17 version.bat
2026-01-15 15:01 <DIR>         dosemu
2026-01-17 12:24            28 testit.bat
2026-01-17 12:24           622 fdppauto.bat
2026-01-17 12:24           467 fdppconf.sys
2026-01-17 12:28            13 NUL~5D
         6 file(s)           1154 bytes
         1 dir(s)            40.0 GB free

File is created test-imagedir/dXXXXs/c/nul\:

FDPP/FreeCOM
C:\>echo longstring >nul:
C:\>dir
 Volume in drive C is IR DXXXXS C
 Volume Serial Number is 4ADD-1B8A

 Directory of C:\

A        TXT             7  17/01/26 12:25
VERSION  BAT            17  17/01/26 12:24
DOSEMU               <DIR>  15/01/26 15:01
TESTIT   BAT            28  17/01/26 12:24
FDPPAUTO BAT           622  17/01/26 12:24
FDPPCONF SYS           467  17/01/26 12:24
COMMAND  COM        85.480  17/01/26 12:31
         6 file(s)         86.621 bytes
         1 dir(s)     40.977 Mega bytes free

Output is thrown away as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions