delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/10/06:13:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <20000510111408.6988.qmail@web1506.mail.yahoo.com>
Date: Wed, 10 May 2000 04:14:08 -0700 (PDT)
From: Christoph Bugel <christophbugel AT yahoo DOT com>
Reply-To: cbugel AT netvision DOT net DOT il
Subject: E2BIG/EINVAL (was: wildcard expansion once more)
To: cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

I tried this on Linux (I use cygwin only at work)
apparently exec() (called by bash to execute
the utility) returned EINVAL instead of E2BIG.
so maybe this is a (minor) cygwin problem. but
if this is fixed, ls still won't handle large
args, only you'll see a more accurate error..

it seems to me that bash can handle large
commandlines (I have not found a limit. is
there one?) but other utilities are limited.
I tried ls and echo, which both resulted in
E2BIG -- see below. the builtin echo command
has no such problem. hmmm, now that I think of
it - every utility will have this problem -
exec() itself imposes the limitation, I guess.


echo big/*
(this one works -- echo is shell builtin)

/bin/echo big/*
bash: /bin/echo: Argument list too long

ls big/*
bash: /bin/ls: Argument list too long


__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019