GNU bug report logs - #7036
ls, mv, etc on LINUX

Previous Next

Package: coreutils;

Reported by: Elisabet Wahlgren <elisabet.wahlgren <at> ericsson.com>

Date: Wed, 15 Sep 2010 16:26:02 UTC

Severity: normal

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Elisabet Wahlgren <elisabet.wahlgren <at> ericsson.com>
Subject: bug#7036: closed (Re: bug#7036: ls, mv, etc on LINUX)
Date: Wed, 15 Sep 2010 16:47:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#7036: ls, mv, etc on LINUX

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 7036 <at> debbugs.gnu.org.

-- 
7036: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7036
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Bob Proulx <bob <at> proulx.com>
To: Elisabet Wahlgren <elisabet.wahlgren <at> ericsson.com>
Cc: 7036-done <at> debbugs.gnu.org
Subject: Re: bug#7036: ls, mv, etc on LINUX
Date: Wed, 15 Sep 2010 10:48:30 -0600
Elisabet Wahlgren wrote:
> Greatly surprised (and not very happy) that my attempts to list or
> move files satisfying a file name pattern (like ls *.tgz for
> example) fail miserably on my linux machine, when the number of
> files satisfying the pattern is large. Error message example:
> "/bin/mv: Argument list too long". Is this a bug or a feature, would
> you know?

This is a long standing kernel limitation.  Because file glob
expansion occurs by the shell before program invocation this doesn't
have anything to do with any program.  The shell is running out of
space while trying to set up the command environment.

See this reference for all of the details:

  http://www.gnu.org/software/coreutils/faq/#Argument-list-too-long

> I used to work with a Unix version (Solaris) quite a number of years
> (decades) and cannot remember having seen this limitation before.

It has been around forever in traditional Unix kernels.  Note that a
recent change has enhanced the Linux kernel to avoid this limitation.

Bob

[Message part 3 (message/rfc822, inline)]
From: Elisabet Wahlgren <elisabet.wahlgren <at> ericsson.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: ls, mv, etc on LINUX
Date: Wed, 15 Sep 2010 17:02:00 +0200
[Message part 4 (text/plain, inline)]
Hi Guys,

Greatly surprised (and not very happy) that my attempts to list or move files satisfying a file name pattern (like ls *.tgz for example)  fail miserably on my linux machine, when the number of files satisfying the pattern is large. Error message example: "/bin/mv: Argument list too long". Is this a bug or a feature, would you know?

I used to work with a Unix version (Solaris) quite a number of years (decades) and cannot remember having seen this limitation before.

Any tips?

Regards,
Elisabet Wahlgren



[Message part 5 (text/html, inline)]

This bug report was last modified 14 years and 309 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.