Mail Archives: djgpp-workers/2000/08/08/13:34:31
> Date: Tue, 08 Aug 2000 09:14:15 -0700
> From: Bruce Korb <bkorb AT sco DOT COM>
>
> > > I think it safe to assume that ``system(3)'' will work essentially
> > > the same way on UNIX and DOS.
> >
> > That is not a very good assumption, although when $SHELL points to
> > Bash, the similarity is almost 100%, because in that case, DJGPP's
> > system(3) simply invokes Bash with its unmodified argument.
>
> Well, then if they do not have Bash installed, it is entirely possible
> that fixincl will not run.
That's true, but that is not a real problem in this case: the GCC
build procedure for DJGPP *requires* Bash (and quite a few of other
GNU tools, like Fileutils, Grep, Sed, etc.). So we can safely assume
that Bash is available; and mkfixincl.sh actually takes care of
setting $SHELL explicitly before it runs "make -f Makefile.DOS".
> As long as ``system(3)'' can correctly handle this style of quoting:
>
> sed -e 's/'\''/"/'
It does handle this correctly, even without Bash. But without Bash,
the backslash only quotes an apostrophe or a quote (since a backslash
is a directory separator). However, this is not a problem in this
case, I only mentioned the issue btw.
> sed = "/^\tstrncmp(),$/N";
> sed = 's/^\(' "\t" 'strncmp()\),\n\(' "\t" 'strlen(),\)$/'
> '\1;' "\\\nextern unsigned int\\\n\\2/";
>
> If you can fix that one, it would be wonderful :-).
I will see what I can do.
> The missing NULL define is a problem, however.
> That needs to be run down.
Okay, I will look into this. Thanks for the hints.
- Raw text -