delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/26/07:16:56

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:mime-version:content-type
:content-transfer-encoding:message-id:date:to:subject; q=dns; s=
default; b=Bi2weNy5LoPwP9dhvEEDo8tKkrWpKnKeVp97cMwS0P5mkhdOaDNS7
nLPu91IreBjCafjBksfGRHhD8cckisYae/5F4do6oMelupKZOKLHshH0i4RlnjrU
/eBtqSA0sk9uFzPJD4dV+OzL2fFOj/yvfTqS5clWqjSfwyOD+UnrUk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:mime-version:content-type
:content-transfer-encoding:message-id:date:to:subject; s=
default; bh=9F6NnX12VWNV86NKk+47zWRYFHU=; b=iBOweeUowUBUinJGF7G3
KlvC+Zd3JcEJ3VuvUb33sH84wbHStUD/RWs/gmgMbQoZbpq0x3S3qnZfGPjdrXhk
uoAwrdds9E63pP/XNbBNY3a2wT0FZ0zV0WMXltHq25x2p6lFibDQb3BiTGt+ZrQT
vlseInlrG+iPJ+IRZQkIMOk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_HK_NAME_FM_DR autolearn=ham version=3.3.2
X-HELO: mail-wi0-f179.google.com
X-Received: by 10.180.198.12 with SMTP id iy12mr20874899wic.72.1445858196797; Mon, 26 Oct 2015 04:16:36 -0700 (PDT)
From: Dr Rainer Woitok <rainer DOT woitok AT gmail DOT com>
X-Google-Original-From: Dr Rainer Woitok <Rainer DOT Woitok AT Gmail DOT Com>
MIME-Version: 1.0
Message-ID: <22062.2952.946000.358554@woitok.gmail.com>
Date: Mon, 26 Oct 2015 12:16:24 +0100
To: cygwin AT cygwin DOT com
Subject: Command line length in Ash or Dash Shells
X-IsSubscribed: yes

Fellow Cygwinners,

recently I needed to remove quite a few Cygwin packages from my install-
ation, and due to  all these interdependencies  I wanted to do this in a
single call:

   setup-x86*.exe -x ...,...,...

Calling this  command as  a Windows  "*.bat" file  failed with  an error
message suggesting that the command line simply was too long.  Searching
the web I  found disagreeing figures for the maximum command line length
for "*bat" files  under Windows Vista of  2000+ and 8000+,  but since my
command line had a length of  12000+ anyway,  I tried issuing this comm-
and from an Ash Shell script instead, which succeeded.

No I'm  playing with the idea  of using such an  Ash Shell script  (with
"setup-x86*.exe -P", of course)  to carry my current Cygwin implementat-
ion over to my  not yet decided upon next hardware.   But nevertheless I
feel a bit uneasy  about any potential  command line length  restriction
which could ultimately raise  its ugly head and interfere with my glori-
ous plans.

Does anybody definitely know about a  maximum command line length in the
Ash or Dash Shells?

Or alternatively:  is there a way to cause  "setup-x86*.exe" to read the
package list from a file or from standard input, even though "setup-x86*
--help" does not seem to indicate there is?

Any pointers appreciated.

Sincerely,
  Rainer

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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