emacs-bug-tracker
[Top][All Lists]
Advanced

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

[Emacs-bug-tracker] bug#7036: closed (ls, mv, etc on LINUX)


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#7036: closed (ls, mv, etc on LINUX)
Date: Wed, 15 Sep 2010 16:47:02 +0000

Your message dated Wed, 15 Sep 2010 10:48:30 -0600
with message-id <address@hidden>
and subject line Re: bug#7036: ls, mv, etc on LINUX
has caused the GNU bug report #7036,
regarding ls, mv, etc on LINUX
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
7036: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7036
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: ls, mv, etc on LINUX Date: Wed, 15 Sep 2010 17:02:00 +0200
 
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
 
 
 

--- End Message ---
--- Begin Message --- Subject: Re: bug#7036: ls, mv, etc on LINUX Date: Wed, 15 Sep 2010 10:48:30 -0600 User-agent: Mutt/1.5.20 (2009-06-14)
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


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]