Re: uniq -c outputs SPACES NUMBER TAB LINE

2009-02-25 Thread Leif LeBaron
> Why do you think it's a bug?

I imagine the insertion of leading spaces was deliberate, but I refer to it as 
bug because it has already been registered as such in your bug tracker, and 
also for the following reasons.

- It appears to be undocumented (I checked both, man and info pages).

- It appears to violate susv3 
() which 
clearly states:

If the -c option is specified, the output file shall be empty or each 
line shall be of the form:
"%d %s", , 

- It breaks other commands, for example:

This should work:

cat textfile | sort | uniq -c | cut -d " " -f 2-

But instead the leading spaces must first be removed:

cat textfile | sort | uniq -c | sed 's/^[ \t]*//' | cut -d " " 
-f 2-


> Please reply not to me directly, but rather to the
> bug-coreutils@gnu.org mailing list.

By the way, I replied using the button on the website 
 (so, 
you may want to change that address).

Please confirm that this message has been received.

Thanks,
Leif


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


Re: uniq -c outputs SPACES NUMBER TAB LINE

2009-03-05 Thread Leif LeBaron
> Would you care to submit a documentation patch?

... 


I have much respect and appreciation for rms & al. whose work has contributed 
to 
software/information freedom; however, I am increasingly dismayed with 
GNU software, and increasingly diverted to other tools.

It seems useful to promote the potential of potent simplicity.

http://harmful.cat-v.org/cat-v/unix_prog_design.pdf



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