charnitz
Experienced Member
Why does redirecting the output of NOW to a file result in the zeroes in the time code being put on a second line in the file?
Assume it is 2:03:04:18 when this is executed:
Assume it is 2:03:14:18 when this is executed:
Assume it is 2:13:14:18 when this is executed:
For the zeroes at minutes and seconds, it seems to impact them only if they occur directly after the preceding colon. Assume it is 2:50:05.41 when this is executed:
ECHO does not replicate the behavior:
For:
Assume it is 2:03:04:18 when this is executed:
Code:
> now > a.txt
> type a.txt
It is now March 24 2021, 2:3:4.18 .
00
Assume it is 2:03:14:18 when this is executed:
Code:
> now > a.txt
> type a.txt
It is now March 24 2021, 2:3:14.18 .
0
Assume it is 2:13:14:18 when this is executed:
Code:
> now > a.txt
> type a.txt
It is now March 24 2021, 2:13:14.18 .
For the zeroes at minutes and seconds, it seems to impact them only if they occur directly after the preceding colon. Assume it is 2:50:05.41 when this is executed:
Code:
> now > a.txt
> type a.txt
It is now March 24 2021, 2:50:5.41 .
0
ECHO does not replicate the behavior:
Code:
> echo It is now March 24 2021, 2:03:04.18 . > a.txt
> type a.txt
It is now March 24 2021, 2:03:04.18 .
For:
Code:
> ver
Toshiba MS-DOS Version 2.11 / R2A10US
Last edited: