- May
- 3,515
- 5
These are the pseudofilenames which @DEVICE reports to be devices when tested without an extension, e.g., %@DEVICE[AUX]:
AUX COM1 COM2 COM3 COM4 CON LPT1 LPT2 LPT3 LPT4 NUL PRN
However, when tested WITH an extension, e.g., %@DEVICE[AUX.a], the following devices are incorrectly reported (i.e., files cannot be created with such names):
AUX COM1 COM2 COM3 COM4 LPT1 LPT2 LPT3 LPT4 PRN
Only the CON and the NUL devices are reported correctly when the pseudofilename contains an extension. Prefixing the pseudofilename with a full path, e.g., %_cwd\AUX, does not alter the result. I did the test on TCC 12.10.66 and on
4NT 8.02.106. Platform: Windows XP [Version 5.1.2600].
A possibe fix: internally to TCC the @DEVICE function should use the @NAME function to strip the extension before making the test.
--
Steve
AUX COM1 COM2 COM3 COM4 CON LPT1 LPT2 LPT3 LPT4 NUL PRN
However, when tested WITH an extension, e.g., %@DEVICE[AUX.a], the following devices are incorrectly reported (i.e., files cannot be created with such names):
AUX COM1 COM2 COM3 COM4 LPT1 LPT2 LPT3 LPT4 PRN
Only the CON and the NUL devices are reported correctly when the pseudofilename contains an extension. Prefixing the pseudofilename with a full path, e.g., %_cwd\AUX, does not alter the result. I did the test on TCC 12.10.66 and on
4NT 8.02.106. Platform: Windows XP [Version 5.1.2600].
A possibe fix: internally to TCC the @DEVICE function should use the @NAME function to strip the extension before making the test.
--
Steve