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

bugs at busybox.net bugs at busybox.net
Fri May 5 06:34:21 UTC 2006


A NOTE has been added to this issue. 
====================================================================== 
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:                     assigned
====================================================================== 
Date Submitted:             03-14-2006 09:50 PST
Last Modified:              05-04-2006 23:34 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. 

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                          
======================================================================




More information about the busybox-cvs mailing list