delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/24/14:32:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Sun, 24 Oct 2004 20:26:53 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-ID: <01c4b9f7$Blat.v2.2.2$2ea5e060@zahav.net.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2
In-reply-to: <BuIed.9409$6q2.3246@newssvr14.news.prodigy.com>
(one2001boy AT yahoo DOT com)
Subject: Re: tar.exe problem
References: <DvKcd.15034$nj DOT 12695 AT newssvr13 DOT news DOT prodigy DOT com> <2thjecF1urnn1U1 AT uni-berlin DOT de> <48Fdd.16708$nj DOT 14914 AT newssvr13 DOT news DOT prodigy DOT com> <01c4b72d$Blat.v2.2.2$08f4f8a0 AT zahav DOT net DOT il> <Hx_dd.8697$6q2 DOT 4445 AT newssvr14 DOT news DOT prodigy DOT com> <01c4b8f7$Blat.v2.2.2$96d08f60 AT zahav DOT net DOT il> <BuIed.9409$6q2 DOT 3246 AT newssvr14 DOT news DOT prodigy DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com>
> Date: Sun, 24 Oct 2004 07:05:05 GMT
> 
> > No, the maximum command-line length that Windows can give to a DOS
> > program is 126.  So this last command is too long.
> 
> Based on brian's input, here is the command line size allowed in Windows.
> 
> MS DOS command.com	 127
> Windows NT cmd.exe	 256
> Windows 2K cmd.exe	2046
> Windows XP cmd.exe	8190
> 
> I use Windows XP, not sure why it still limits to 126 for tar.exe?

Brian was talking about Windows programs, but DJGPP programs are DOS
programs as far as Windows is concerned.  For DOS programs, the limit
is 126 characters on all MS operating systems without exception.  This
is the consequence of a simple fact that the DOS system call which
invokes programs has a 127-character buffer for the command line,
including the trailing newline.

> Thanks. Just think if will be more nice if it can work out without using 
> those utilities.

Complain to Bill Gates: it was a deliberate decision on the part of
Microsoft to ostracize DOS programs from most of the niceties
introduced by latest versions of Windows.

- Raw text -


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