On the following Linux version:

stnsp013:/home/therter> uname -a
Linux stnsp013 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:18:24 EDT 2004 i686 i686 
i386 GNU/Linux

stty always reports correct number of columns:

stnsp013:/home/therter> stty -a
speed 9600 baud; rows 64; columns 100; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = 
<undef>; start = ^Q;
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; 
time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff 
-iuclc -ixany
-imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt 
echoctl echoke

but the ksh does not recognize it correctly and "thinks" that only 
80 colums are avaiable and shortens the long command line like this:

stnsp013:/home/therter> 89012345678901234567890123                            <

If COLUMNS will be defined manually to match stty columns, 
everything works fine.

Sincerely,
Thomas



_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to