ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/12/09/17:15:18

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ANN: Seed7 Release 2011-12-04
Date: Fri, 9 Dec 2011 14:02:42 -0800 (PST)
Organization: http://groups.google.com
Lines: 56
Message-ID: <1b27d3cd-57d4-424c-a736-4bd04607ee26@e19g2000yqk.googlegroups.com>
References: <aef4dc05-ab5e-40d3-8e5c-26ab4506b458 AT gl2g2000vbb DOT googlegroups DOT com>
<9183dc2d-2e41-4dc2-89e1-fa514074c735 AT a17g2000yqj DOT googlegroups DOT com>
<5ad09b0d-f8c2-4d7d-b6d5-b8e84e670a72 AT h3g2000yqa DOT googlegroups DOT com> <831usfbtf5 DOT fsf AT gnu DOT org>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1323468270 26945 127.0.0.1 (9 Dec 2011 22:04:30 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Fri, 9 Dec 2011 22:04:30 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: e19g2000yqk.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HNKRAUELSC
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16
(KHTML, like Gecko) Chrome/10.0.630.0 Safari/534.16,gzip(gfe)
Bytes: 3722
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pB9MF2An001220
Reply-To: djgpp AT delorie DOT com

Hi,

On Dec 7, 10:04 pm, Eli Zaretskii <e DOT  DOT  DOT  AT gnu DOT org> wrote:
> > From: Rugxulo <rugx DOT  DOT  DOT  AT gmail DOT com>
> > Date: Wed, 7 Dec 2011 18:13:42 -0800 (PST)
>
> > I don't remember exactly why or where, but somewhere (presumably
> > inside Make) it prefers GNU coreutils' echo.exe over built-in DOS
> > command.com's echo or Bash's echo or djecho.exe.
>
> It simply looks for FOO.exe along PATH before falling back on built-in
> shell command FOO.

Make (3.81) apparently does but Bash doesn't. Try a simple makefile or
sh command that does "echo --version", and see what happens.   ;-)

Even DOS (command.com) seems to always use built-in echo unless
explicitly told otherwise:

sh -c 'djecho -n hello ; djecho world' (djecho)
sh -c 'echo -n hello ; echo world' (Bash)
sh -c 'help echo' (Bash)
sh -c 'echo --version' (Bash)
sh -c 'echo.exe --version' (CoreUtils)
echo --version          (command.com)
echo.exe --version   (command.com)
\djgpp\bin\echo --version  (CoreUtils)

> > In other words, without Coreutils' echo.exe installed, "make depend"
> > fails.
>
> Probably because it uses some features that are not present in the
> builtin 'echo'.

Well, it's vaguely complicated. But yes, after some lightweight
testing, I can (almost?) 100% conclude that he (tm) should use
DJECHO.EXE in his mk_djgpp.mak instead of default, preferably via $
(ECHO).

DJECHO works, confirmed, same binary is outputted (matches and also
same size), same results from "hi chk_all". (The lib files presumably
are the same too, but a simple cmp shows some minor differences, and
I'm blindly guessing it's some internal timestamp.) The good thing
about DJECHO is that it's included by default in every DJGPP install
(DJDEV*.ZIP), so it's no extra burden to require or grab anything
else.

Apparently djecho.c isn't very complicated, only 66 lines!  ;-)   And
while CoreUtils echo.c has a few extra complications (due to
portability?), even it is still only 244 lines (not counting a few
extra local headers). Though I find it funny that the author of the
latter is (was?) officially "FIXME unknown", heh.

P.S. IIRC, at one time (DJGPP 2.00? [sic]), DJECHO.EXE was actually
called ECHO.EXE, but it was probably renamed to avoid a clash with the
aforementioned CoreUtils version.

- Raw text -


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