zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: hniksic@srce.hr
Cc: jarausch@igpm.rwth-aachen.de, zsh-workers@math.gatech.edu
Subject: Re: zsh arg list too long
Date: Mon, 12 Feb 1996 13:49:53 +0100 (MET)	[thread overview]
Message-ID: <199602121249.NAA01279@bolyai.cs.elte.hu> (raw)
In-Reply-To: <199602121217.NAA09795@jagor.srce.hr> from "Hrvoje Niksic" at Feb 12, 96 01:17:20 pm

Hrvoje Niksic <hniksic@srce.hr> wrote:
> In your mail, you said:
> > Last time I only tried   rm  ~/.netscape-cache/*
> > and it failed because there were (only) 576 files (filename length 24)
> 
> I noticed it too. It should not be OS restriction, since it works in other
> shells. I am afraid it is a zsh bug.

What other shells does it work?  The `arg list too long' message comes from
the OS.  If the arg list is long execve fails and sets errno to E2BIG.
Builtin zsh commands can have arbitrary long argument lists.  If you do not
believe me, grep the zsh source for the arg list too long message.  You won't
find it.  The maximum allowed length of the argument list is very OS
dependent.  E.g. on Linux I can do:

bolyai /l/src % /bin/echo ([nzk]|t[^au])*/**/*|wc
      1    4346  127155

But here 128k is the maximum.  On Ultrix and probably on other OS'es as well
the limit is much lower.

Note that you must use /bin/echo above since the echo builtin can have any
number of arguments.

Cheers,

Zoltan


  reply	other threads:[~1996-02-12 13:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-09  9:26 Helmut Jarausch
1996-02-12 12:17 ` Hrvoje Niksic
1996-02-12 12:49   ` Zoltan Hidvegi [this message]
1996-02-13  7:32   ` Geoff Wing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199602121249.NAA01279@bolyai.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=hniksic@srce.hr \
    --cc=jarausch@igpm.rwth-aachen.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).