delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-workers-bounces using -f |
Date: | Sun, 23 Dec 2001 21:10:37 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | sandmann AT clio DOT rice DOT edu |
Message-Id: | <1858-Sun23Dec2001211037+0200-eliz@is.elta.co.il> |
X-Mailer: | emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 |
CC: | djgpp-workers AT delorie DOT com |
In-reply-to: | <10112231807.AA18583@clio.rice.edu> (sandmann@clio.rice.edu) |
Subject: | Re: v2.03 refresh issue - passing 3K argument list [was Re: A new bug?] |
References: | <10112231807 DOT AA18583 AT clio DOT rice DOT edu> |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > Date: Sun, 23 Dec 2001 12:07:47 -0600 (CST) > > I was able to make a small test with the files: > > test.bat: > make MASK="`./cat test.fil`" > > makefile: > SHELL = /bin/sh > > all: test.fil > ./djecho "$(MASK)" If the issue is the maximum length of the command line that you can pass from Make to djecho, then the limit depends on the machine where it runs: the 16KB transfer buffer is shared between the command line and the environment we inherit to the child, so if your environment is smaller, you will be able to pass a longer command. Since the environment matters, if a different version of Bash passes a few more variables to the child, you get a smaller limit on the longest command line. Btw, please note that it's not at all certain that Make invokes djecho through Bash in this case. You should check that carefully: I'm not sure whether "$(MASK)" has enough magic in it to force Make to call the shell. If you want to be sure Bash is called, add redirection to the command.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |