compressing 0 modules

Elan Ruusamäe glen at pld-linux.org
Fri Feb 1 08:19:53 CET 2008


On Friday 01 February 2008 02:45:49 Andrzej 'The Undefined' Dopierała wrote:
> On Wed, Jan 30, 2008 at 10:31:54AM +0200, Elan Ruusamäe wrote:
> > any suggestions how to make the counting proper for empty and non-empty
> > list?
> >
> > with echo -n:
> > $ echo -n /lib/modules/2.6.22.16-3/misc/nvidia.ko | wc -l
> > 0
> >
> > $ echo -n ""| wc -l
> > 0
>
> [undefine at uml ~]$ echo -n /lib/modules/2.6.22.16-3/misc/nvidia.ko | wc -w
> 1
> [undefine at uml ~]$ echo -n "" | wc -w
> 0
>
> hm?

it would fail if filename contains spaces. wouldn't want to break on that.


-- 
glen


More information about the pld-devel-en mailing list