[BusyBox 0000784]: [PATCH] wc -c command returns extra characters

bugs at busybox.net bugs at busybox.net
Fri Sep 29 23:42:37 UTC 2006


The following issue has been RESOLVED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=784 
====================================================================== 
Reported By:                asierllano
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   784
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           1.2.x
====================================================================== 
Date Submitted:             03-14-2006 09:50 PST
Last Modified:              09-29-2006 16:42 PDT
====================================================================== 
Summary:                    [PATCH] wc -c command returns extra characters
Description: 
It is harder to use the 'wc' command for scripting because of this minor
issue.

When executing the command in coreutils:
$ echo hello | wc -c
6

Executing it in busybox 1.1.0:
$ echo hello | wc -c
      6

It should not show extra characters when invoking with only one flag:
I've provided a VERY simple patch to fix this minor issue.

====================================================================== 

---------------------------------------------------------------------- 
 asierllano - 05-04-06 23:34  
---------------------------------------------------------------------- 
This issue still reproducible in busybox 1.1.2. 

---------------------------------------------------------------------- 
 vda - 09-29-06 16:42  
---------------------------------------------------------------------- 
Applied to svn as rev 16266 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-14-06 09:50  asierllano     New Issue                                    
03-14-06 09:50  asierllano     Status                   new => assigned     
03-14-06 09:50  asierllano     Assigned To               => BusyBox         
03-14-06 09:50  asierllano     File Added: busybox-wc.patch                    
05-04-06 23:34  asierllano     Note Added: 0001345                          
09-29-06 16:42  vda            Status                   assigned => resolved
09-29-06 16:42  vda            Fixed in Version          => 1.2.x           
09-29-06 16:42  vda            Resolution               open => fixed       
09-29-06 16:42  vda            Note Added: 0001657                          
======================================================================




More information about the busybox-cvs mailing list