Kristian Erik Hermansen on 19 Feb 2008 19:35:59 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Date a Debian package was installed


On Feb 19, 2008 7:17 PM, David A. Harding <dave@dtrt.org> wrote:
>         3. GNU ls supports a maximum of 23,587 arguments[1]. I've never
>            seen a Debian style system with more than about 2,500
>            packages installed, but recent versions of Debian and
>            Ubuntu include more than 24,000 packages, and it's possible
>            (but unlikely) one system could have more than 23,587 dpkg
>            .list files.
>
>                 [1] harda@callisto:~$ ls {1..23587} 2>&1 | head -n3
>                     ls: 1: No such file or directory
>                     ls: 2: No such file or directory
>                     ls: 3: No such file or directory
>
>                     harda@callisto:~$ ls {1..23588}
>                     bash: /bin/ls: Argument list too long

Too many arguments!?!  So what!!  Isn't that what xargs is for :-)
-- 
Kristian Erik Hermansen
--
"It has been just so in all my inventions. The first step is an
intuition--and comes with a burst, then difficulties arise. This thing
gives out and then that--'Bugs'--as such little faults and
difficulties are called--show themselves and months of anxious
watching, study and labor are requisite before commercial success--or
failure--is certainly reached" -- Thomas Edison in a letter to
Theodore Puskas on November 18, 1878
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug