delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/10/13/14:41:02

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: Re: ls (of filutl32)
To: kuku AT acds DOT physik DOT rwth-aachen DOT de
Date: Tue, 13 Oct 92 11:08:56 PDT
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Mailer: Elm [revision: 66.25]

> >in the GO32 environment variable.  Then I use MS_SH200 as my shell
> >instead of COMMAND.COM, and I have the shell do the wild-card
> 
> MS_SH200  is also my favorite shell. Great!. I only did not yet
> manage to enlargen the environment. I get arg/env list too big
> at ridiculously few files already. Do you know how to get that bigger?

You need to tell MS_SH200 that ls.exe (and all other DJGPP-compiled
programs) can accept the "@filename" method of passing a long
command-line.  This will allow MS_SH200 to pass arbitrarily long
command-lines to all of your DJGPP-compiled programs.  MS_SH200 uses a
configuration file which lists programs, one per line, and the "type"
of program that it is.  MS_SH200 uses an environment variable to point
to the configuration file.  Unfortunately, I don't remember the name
of the environment variable.  You need to tell MS_SH200 that all the
DJGPP-compiled programs are "unix" type programs, so your
configuration file will look sort of like this:

cat.exe		= unix
cmp.exe		= unix
expand.exe	= unix
gcc.exe		= unix
ls.exe		= unix
rm.exe		= unix

And so on.  My configuration file is fairly big after listing all of
the FSF utilities and all of DJ's programs.

When you set the environment variable that points to the configuration
file, make sure you "export" it.  That way, if your make program
invokes a subshell, the subshell will know what programs can handle
the wildcard expansion.  For example, suppose your makefile has lines
like this:

SHELL	= /bin/sh		# This is MS_SH200

clean:
	rm -f *.o

Hopefully what will happen is make will pass "rm -f *.o" to the shell,
which will expand the "*.o" and put the expanded command line into a
temp file, and then call "rm @tempfile" to your rm program, which will
read the temp file and remove all the .o files.  Even if you have
thousands of them.
--
				Eric Backus
				ericb%hplsla AT hplabs DOT hp DOT com
				(206) 335-2495

- Raw text -


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