From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Description of problem: I believe I have found a bug in fmt, one of the textutils programs. Here's the script: #!/bin/bash for i in $(seq -w 4052 1 4053) ; do echo -n "$i: " ; seq -w 0 10000 | fmt -w $i | head -1 | wc done Notice the drop in word count (631 -> 321) even though the width option to fmt was increased by one. Here's a similar version where you can see the ouput: #!/bin/bash for i in $(seq -w 4052 1 4053) ; do echo -n "$i: " ; seq -w 0 10000 | fmt -w $i | head -2 done No data is lost. fmt is just splitting earlier than expected. Version-Release number of selected component (if applicable): textutils-2.0.11-7 How reproducible: Always Steps to Reproduce: 1.see description for mini script 2. 3. Actual Results: fmt split earlier than expected Expected Results: a longer line Additional info:
This no longer happens in FC4. $ for i in $(seq -w 4052 1 4053) ; do > echo -n "$i: " ; seq -w 0 10000 | fmt -w $i | head -1 | wc > done 4052: 1 631 3786 4053: 1 632 3792