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

bugs at busybox.net bugs at busybox.net
Tue Mar 14 17:50:16 UTC 2006


The following issue has been SUBMITTED. 
====================================================================== 
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:              03-14-2006 09:50 PST
====================================================================== 
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.

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

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




More information about the busybox-cvs mailing list