Bug: dir /2z produces incorrectly-formatted output

Sep 15, 2009
2
0
On a standard 80-column window, 'dir /2z' with TCC / TCC/LE 10.0.76 (i.e. the latest version) produces 82 columns of output. For example (with some character substitutions made because the editor is trying to parse them as control data):

Code:
[C:\WINDOWS\Fonts]dir /2z

.            [dir]      20/06/09  18:35   ..           [dir]      20/06/09  18:3
5
ARBLI___.TTF     65544  24/10/97  14:42   arial.ttf       367112  17/07/04  10:3
9
...
Widening the window to 82 columns avoids the problem. It looks like there are double spaces being inserted in many columns, if these were single-spaced (a) the output wouldn't overflow any more and (b) there'd be room to display a little more of the file name for longer filenames.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
> On a standard 80-column window, 'dir /2z' with TCC / TCC/LE 10.0.76
> (i.e. the latest version) produces 82 columns of output. For example
> (with some character substitutions made because the editor is trying to
> parse them as control data):

Two thoughts:

1) The /2 and /Z options are (long) obsolete, and only maintained for
compatibility with (very, very) old batch files or aliases.

2) There is no conceivable reason to limit your TCC window to 80 columns.

Rex Conn
JP Software
 
Sep 15, 2009
2
0
1) The /2 and /Z options are (long) obsolete, and only maintained for compatibility with (very, very) old batch files or aliases.

... and with pretty much every Unix shell in existence, for which multicolumn output is the default. Since TCC is about the closest you can get to a Unix shell under Windows, I would imagine there's a fair number of Unix users employing it for that purpose. The /Z isn't because I miss MSDOS but because I want to get the file size and date along with the name (a la 'ls -s'), and /Z is the best way of getting that, since going from 'dir' to 'dir /2' removes the size and date from the output. If there's another way of achieving the same result I'd be happy to use that.

2) There is no conceivable reason to limit your TCC window to 80 columns.

Hmm, this seems a bit like the joke about telling someone to stand on their head when they complain that the picture on their TV is upside-down :-). This does seem like a legitimate bug, since TCC isn't respecting the window size when it produces output.

(Besides, 80 columns has been the de factor standard width since the 1920s, and who am I to question teletypes and punched cards?).
 
Similar threads
Thread starter Title Forum Replies Date
E Fixed Bug with DIR /Z displaying descriptions Support 8
Dick Johnson v28 Cosmetic Bug Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
R strange bug? Support 7
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
M Server 2019 Bug with @execstr? Support 14
R bug _ypixels in BDEBUGGER Support 6
E Text copy bug Support 1
x13 SETARRAY /Z bug Support 6
Gamegod ffind bug with chinese Support 2
Dick Johnson cdd - is this a bug or a feature? Support 7
P "Set" command behavior - a bug? Support 3
nikbackm TCC 20 variable expansion bug Support 6
gentzel Bug launching external commands in 20.11.43 Support 11
R Is this a bug in SETARRAY? Support 2
M Windows Installer bug? Support 4
vefatica @SCRIPT bug persists Support 4
M Little bug, big consequences .. Support 6
fishman@panix.com Once again the Can't Install bug bites... Support 2
gentzel Fixed dirs +n bug in 20.0.12 x64 Support 2
M Bug in Windows 10, when adding symbol to task bar Support 6
Alpengreis [Bug?] View (V) Prefs Error (TC 18.00.27 x64) Support 4
D WAD Minor Post Installation Bug in V18 Support 1
I Possible Bug: History /n Returns Nothing Support 3
samintz WAD Weird REN bug Support 6
Jay Sage WAD Possible Bug in Batch Parameters Support 7
G Bug? TCC 16.03.55 Console Palette Support 4
S Return of FTP copy bug in 16.02.48 Support 12
S XenForo bug Support 3
D TCMD16 Delete Toolbar Button bug Support 7
keithg1964 WAD 16.0027 Alias /rz bug Support 8
rfaquino WAD Apparently a bug when expanding environment variable %ProgramFiles(x86) Support 2
T Documentation @LINE[CON,n] @LINES[CON] not documented (bug?) Support 4
H TIMER bug Support 4
G Fixed @REREPLACE bug Support 15
G WAD PDIR @IF bug, @WORD bug Support 8
T Bug in TCMD but not in TCC Support 8
M WAD A complaint regarding a very irritating TCC installation behavior... (Bug?) Support 4
nickles Renaming bug? Support 9
nickles Redirect bug? Support 4
nickles UrlDecode() bug? Support 3
P WAD Bug in TC v 13.03 build 39 x64 Support 1
S Debug feature bug? Support 17
Roedy CDD /S bug Support 3
J TCCLE 12.11 dirhistory bug Support 1
S MOVE from FTP directory to another FTP directory - bug?? Support 2
T Bug in variable expansion Support 4
M An undocumented limitation and an associated minor bug... Support 1
M High-Precision arithmetic bug... Support 1
nickles REN bug Support 11

Similar threads