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

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: Re: ms_sh200 command lines
To: HANK AT DUCVAX DOT AUBURN DOT EDU
Date: Tue, 13 Oct 92 14:03:52 PDT
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Mailer: Elm [revision: 66.25]

> >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
> 
> I was certain that I have tried this, and it failed. I sent a note to the
> author of ms_sh200, Stewartson, and he replied that a recompilation was
> needed. 

I am quite sure that it works.  I use this ALL the time.  I can do
things like "ls *" in a large directory, and get the output I expect,
and I have go32's globbing turned off.  If I remove the "ls.exe =
unix" line from the configuration file, I get an error message from
the shell saying that there is not enough room on the command line.  I
can tell the difference between go32's globbing and the shell's, so I
am sure that the shell is doing it.  I can also do "ls \*" (quoting
the '*') and then ls complains that the file '*' doesn't exist, so I
can again tell that the shell is doing the expansion, not ls.

> ms_sh200 was posted to comp.binaries.ibm.pc (and it included an OS/2 version)
> some time ago. In the post, stewartson said that he hoped to post sources
> to c.b.i.p someday.
> 
> >And so on.  My configuration file is fairly big after listing all of
> >the FSF utilities and all of DJ's programs.
> 
> But does it really use the @filename-convention? I was certain that
> it did not.

I am certain that it does.  See above.

> This thread no longer concerns djgpp directly, but I'll ask one more question
> anyway: Is it possible to get sh to pass quoted lines to gawk? I can never 
> get these unix scripts to work without cutting the gawk line to be of
> the form 
>    gawk -f file.awk
> 
> Rommel suggests using " instead of ', but I think I've tried this (and will
> try again tonight).

I have never been able to get this to work, regardless of the type of
quote mark.  This is my biggest complaint with MS_SH200, since this
breaks many simple scripts and Makefiles from unix.

> 
> --Darrel Hankerson hank AT ducvax DOT auburn DOT edu
--
				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