compressing 0 modules

Andrzej 'The Undefined' Dopierała undefine at aramin.net
Fri Feb 1 10:47:53 CET 2008


On Fri, Feb 01, 2008 at 09:19:53AM +0200, Elan Ruusamäe wrote:
> > > any suggestions how to make the counting proper for empty and non-empty
> > > list?
> > >
> > [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.
afaik none of modules contains spaces, tabulators, newline characters.

-- 
Andrzej 'The Undefined' Dopierała
Linux && Unix && Network administrator
PLD Linux Developer      HomePage: http://andrzej.dopierala.name/
JID: undefine at piastlan.net         e-mail: andrzej at dopierala.name


More information about the pld-devel-en mailing list