From MAILER-DAEMON Tue Jan 23 14:38:41 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ee4P3-00014p-1o
	for mharc-gforth@gnu.org; Tue, 23 Jan 2018 14:38:41 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44760)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sendilo@alinome.net>) id 1ee4P1-000149-1N
	for gforth@gnu.org; Tue, 23 Jan 2018 14:38:40 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sendilo@alinome.net>) id 1ee4Ox-0007Uk-Tg
	for gforth@gnu.org; Tue, 23 Jan 2018 14:38:39 -0500
Received: from black.maple.relay.mailchannels.net ([23.83.214.19]:42824)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <sendilo@alinome.net>) id 1ee4Ox-0007Ge-Io
	for gforth@gnu.org; Tue, 23 Jan 2018 14:38:35 -0500
X-Sender-Id: asmallorange|x-authuser|sendilo@alinome.net
Received: from relay.mailchannels.net (localhost [127.0.0.1])
	by relay.mailchannels.net (Postfix) with ESMTP id 6DDAD5C1C56
	for <gforth@gnu.org>; Tue, 23 Jan 2018 19:38:22 +0000 (UTC)
Received: from python.asoshared.com (unknown [100.96.4.59])
	(Authenticated sender: asmallorange)
	by relay.mailchannels.net (Postfix) with ESMTPA id 095AA5C1BB8
	for <gforth@gnu.org>; Tue, 23 Jan 2018 19:38:21 +0000 (UTC)
X-Sender-Id: asmallorange|x-authuser|sendilo@alinome.net
Received: from python.asoshared.com (python.asoshared.com [172.18.43.43])
	(using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
	by 0.0.0.0:2500 (trex/5.13.1); Tue, 23 Jan 2018 19:38:22 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: asmallorange|x-authuser|sendilo@alinome.net
X-MailChannels-Auth-Id: asmallorange
X-Desert-Obese: 6c9cc39a7aa05ea4_1516736302193_4151448910
X-MC-Loop-Signature: 1516736302193:1886760870
X-MC-Ingress-Time: 1516736302192
Received: from 17.120.223.87.dynamic.jazztel.es ([87.223.120.17]:55515
	helo=localhost)
	by python.asoshared.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128)
	(Exim 4.89_1) (envelope-from <sendilo@alinome.net>)
	id 1ee4Oi-001NRG-Qj
	for gforth@gnu.org; Tue, 23 Jan 2018 14:38:21 -0500
Date: Tue, 23 Jan 2018 20:38:17 +0100
From: Marcos Cruz <gforth_list_00@programandala.net>
To: gforth@gnu.org
Message-ID: <20180123193817.GB9198@raspesis>
Mail-Followup-To: gforth@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-AuthUser: sendilo@alinome.net
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 23.83.214.19
Subject: [gforth] `nextname` with empty strings
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Gforth discussion and announcements <gforth.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gforth>,
	<mailto:gforth-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gforth/>
List-Post: <mailto:gforth@gnu.org>
List-Help: <mailto:gforth-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gforth>,
	<mailto:gforth-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2018 19:38:40 -0000

This is ok:

---------------------------
variable
*the terminal*:1: error: Attempt to use zero-length string as a name
---------------------------

But:

---------------------------
s" " nextname variable  ok
latest name>string  .s <2> 1985949052 0  ok
---------------------------

I expected exception #-16 also in this case. Is it a bug?

I'm using Gforth 0.7.9_20171005. I've tried 0.7.2 and 0.7.3, same behaviour.

-- 
Marcos Cruz
http://programandala.net


From MAILER-DAEMON Thu Jan 25 17:49:09 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1eeqKT-0001Xy-B7
	for mharc-gforth@gnu.org; Thu, 25 Jan 2018 17:49:09 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59966)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daruffer@gmail.com>) id 1eeqKS-0001X2-1W
	for gforth@gnu.org; Thu, 25 Jan 2018 17:49:08 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daruffer@gmail.com>) id 1eeqKO-0004Gp-Vv
	for gforth@gnu.org; Thu, 25 Jan 2018 17:49:08 -0500
Received: from mail-ot0-x22c.google.com ([2607:f8b0:4003:c0f::22c]:41749)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <daruffer@gmail.com>) id 1eeqKO-0004Gi-Py
	for gforth@gnu.org; Thu, 25 Jan 2018 17:49:04 -0500
Received: by mail-ot0-x22c.google.com with SMTP id 44so8498908otk.8
	for <gforth@gnu.org>; Thu, 25 Jan 2018 14:49:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=message-id:mime-version:to:from:subject:date:importance;
	bh=vJnjuBWG406gtKCKDRz1IrlGY4aW7h8OoK8gNzh/w70=;
	b=D+/5erqKl+6IFCc8C6kkSaht+BK6vCBAWvoQy3+iW5ebidSMDi1o8dlLFfBspMbAFQ
	d+IJxTwFdZvePAMidNwGeB4gz7ILtZS6L6OLmK/ce8rbPE1mk+09XV8utqChsGFzGRmV
	DSgMIK3H6Dgt0n8903E7sdiTpWFNg8bGDNVdWCUAT9PTp/ceRw9183AKYA5AuqDgM+2M
	kHqEtpLntCyMYAFMLEV+oZ+3p9yTVacj/1IPyw35KZTFXVPUbw33r97MOf4uiTa1C07+
	fJqtFTBzPkFF5SIGw91uG5BJ2hFT05BZSvx0kNjWET9yilyqSPs0HTuly7CZRvoBUmPt
	xj3Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:message-id:mime-version:to:from:subject:date
	:importance;
	bh=vJnjuBWG406gtKCKDRz1IrlGY4aW7h8OoK8gNzh/w70=;
	b=iYCxmAy5TAuuhESuEIxFZ3loxDJ6XXvKQQdIWB4sLtdYjW55n7Tj2Hp3xcIIvLCpas
	XPFDPU9+tiBS6xKDKzExl7aNLNTaKEDeeMS6B0cJgkLMSlPMofQhPxO1NsjKNv8d8hTy
	jV/CpbIOyE8+zjhXGnXe/fjCRDuBAmLKzsaWYHEOjETdxCC+txyYbhGpVIr505Pchokl
	PvhCZ2zu1/9TjC5PiJAlBzAYnuTZUXVkveHeO5yGcRXKsmWYhIF5+1LHrIhbI+V6RVOB
	ZNjaigAU4chVdwam7uOXoSIPLQKYX/MEWXp3uswIynLIvwnuwXm35rK72kg96eTxeXS0
	mQFA==
X-Gm-Message-State: AKwxytej9PS8AnqlTFvmzVVI/y9U1z011NJwpbfaVQ0Kbkw14FzAUPOR
	8c0TydHg6C71WRW/BZMYX1f4LmDZ
X-Google-Smtp-Source: AH8x226b+yNS+C5EEijgwZO1T+O+nsE7JpB2/i5PdzOgFxCkztz87pVHgGAkMNTMx7IjfS0y0v5C8w==
X-Received: by 10.157.10.7 with SMTP id 7mr13525750otg.65.1516920543385;
	Thu, 25 Jan 2018 14:49:03 -0800 (PST)
Received: from ?IPv6:::ffff:192.168.2.126? ([128.177.22.110])
	by smtp.gmail.com with ESMTPSA id
	c195sm3572398oib.48.2018.01.25.14.49.01 for <gforth@gnu.org>
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Thu, 25 Jan 2018 14:49:02 -0800 (PST)
Message-ID: <5a6a5ede.cc4eca0a.1d0bc.5386@mx.google.com>
MIME-Version: 1.0
To: gforth <gforth@gnu.org>
From: Dennis Ruffer <daruffer@gmail.com>
Date: Thu, 25 Jan 2018 14:49:02 -0800
Importance: normal
X-Priority: 3
Content-Type: multipart/alternative;
	boundary="_AD0E63CC-216A-4A02-985B-5CADC733B825_"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:4003:c0f::22c
Subject: [gforth] How to get stdout into gforth
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Gforth discussion and announcements <gforth.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gforth>,
	<mailto:gforth-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gforth/>
List-Post: <mailto:gforth@gnu.org>
List-Help: <mailto:gforth-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gforth>,
	<mailto:gforth-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Jan 2018 22:49:09 -0000

--_AD0E63CC-216A-4A02-985B-5CADC733B825_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Say I want to do something like this:=20

s" cd .. ; pwd" system /home/druffer

How do I get the output of pwd back into gforth?

I see infile-execute, but I don=E2=80=99t see an examples for me to try.

Is that the right path, or is there another?

DaR

=20

--_AD0E63CC-216A-4A02-985B-5CADC733B825_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta ht=
tp-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta name=
=3DGenerator content=3D"Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
code
	{mso-style-priority:99;
	font-family:"Courier New";}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang=3DEN-US><div class=3DWordSection1><p class=3DM=
soNormal>Say I want to do something like this: </p><p class=3DMsoNormal><o:=
p>&nbsp;</o:p></p><p class=3DMsoNormal>s&quot; cd .. ; pwd&quot; system /ho=
me/druffer</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNorma=
l>How do I get the output of pwd back into gforth?</p><p class=3DMsoNormal>=
<o:p>&nbsp;</o:p></p><p class=3DMsoNormal>I see infile-execute, but I don=
=E2=80=99t see an examples for me to try.</p><p class=3DMsoNormal><o:p>&nbs=
p;</o:p></p><p class=3DMsoNormal>Is that the right path, or is there anothe=
r?</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>DaR</p=
><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal> </p></div>=
</body></html>=

--_AD0E63CC-216A-4A02-985B-5CADC733B825_--



From MAILER-DAEMON Thu Jan 25 20:03:55 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1eesQt-000884-H3
	for mharc-gforth@gnu.org; Thu, 25 Jan 2018 20:03:55 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55414)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <carlhansen1234@gmail.com>) id 1eesQr-00087P-Ko
	for gforth@gnu.org; Thu, 25 Jan 2018 20:03:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <carlhansen1234@gmail.com>) id 1eesQq-0002RA-Rq
	for gforth@gnu.org; Thu, 25 Jan 2018 20:03:53 -0500
Received: from mail-qt0-x236.google.com ([2607:f8b0:400d:c0d::236]:33849)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <carlhansen1234@gmail.com>)
	id 1eesQq-0002Qz-Mi
	for gforth@gnu.org; Thu, 25 Jan 2018 20:03:52 -0500
Received: by mail-qt0-x236.google.com with SMTP id a27so24151463qtd.1
	for <gforth@gnu.org>; Thu, 25 Jan 2018 17:03:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:from:date:message-id:subject:to;
	bh=Tc3RvtID8Xdz+kQItTtnktSUlwdpCsnIQjNhMLkri8I=;
	b=qIVhQZ77kpGshj1gkUJxvxoCRxHSl27yvyVbL9hdQsMm7ULFQmoGnXQOOTaXiMGLtQ
	qeWwbmbG1OtvxJ4WePezQjS+vLNp+e07cA86jBikbEPJOcxPkWbyl+akCSprcd0uWOwH
	OrFoH4yeVSVC+i+qFeewMdtnu6eJu6PG3DUUV0NNtZSD4FBH8hwIUV4O+PFHwjC7nD01
	uGE7bgBFR6NXGOQiO65DY2QUxJpyMDYC2Zm7yaRDAw77WyJTAC+CZOpLznGkM2L8xfVS
	mpJgnKLmgxjDGt5Dvy1baG7BtKDMlu8Ky4s+crp/DzlggofIRNoWVhNYkgA2ArrwcKf+
	gAVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
	bh=Tc3RvtID8Xdz+kQItTtnktSUlwdpCsnIQjNhMLkri8I=;
	b=nQFZUeDtHasu8e07HTldkHtLYBPXB7ZjQ+jCmsh+6m67RuVc4M/OqHgAo5hF0GeOSp
	ajQyb5/I3012lVJMO/pN/Cv0TnPhftnxFAfcv9CugujQs6UhC5ytDHSaO45lOm/rxAXO
	EAFBLIwhaaKwTWov0P6Z8ycuXTrwjVYpTGhL6AGLRlRmpUFJp7fcQxthp0Kwjh03+Gon
	VOUsQJqxH+NptKM01y6L7D76BC6H8nyAP3r4lpDr7KGlywhQ4o6cEvDSG+dWPGijHZTM
	F2QABCjp734NUzNRt0j5uFtK0UaOSpsr3hLOEMa/E3c5X4yhI5RLFZj51UQOqVbfxWTw
	w3rA==
X-Gm-Message-State: AKwxytf+pgDBNjz/94LosrjDtcGW54hmXoerLWD53GpsbwUkFBH1wnau
	DHmLV94BI2Cm2Ztc2dSRdacwdK8TMcNcpoh8tQM=
X-Google-Smtp-Source: AH8x225dlXOWPpNNwPrrcBYtKaZ6okNZCsZWOmYMfgs1p/PckoNQ6uOkYSCFWU4DWy25sRUQ0fc3K+QylZ4iTJZYyLA=
X-Received: by 10.237.33.208 with SMTP id m16mr20345455qtc.30.1516928631994;
	Thu, 25 Jan 2018 17:03:51 -0800 (PST)
MIME-Version: 1.0
Received: by 10.200.63.243 with HTTP; Thu, 25 Jan 2018 17:03:31 -0800 (PST)
From: carl hansen <carlhansen1234@gmail.com>
Date: Thu, 25 Jan 2018 17:03:31 -0800
Message-ID: <CAHEkXCQHYZ+KPJVoyn8LP-rpV1GL5WsLxPZYWJX4ULPcpoMitA@mail.gmail.com>
To: gforth@gnu.org
Content-Type: multipart/alternative; boundary="001a113579b2427f6b0563a37826"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400d:c0d::236
Subject: [gforth] release
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Gforth discussion and announcements <gforth.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gforth>,
	<mailto:gforth-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gforth/>
List-Post: <mailto:gforth@gnu.org>
List-Help: <mailto:gforth-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gforth>,
	<mailto:gforth-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Jan 2018 01:03:54 -0000

--001a113579b2427f6b0563a37826
Content-Type: text/plain; charset="UTF-8"

There hasn't been a release since 2014

"The secret of success for an open source project
is to release early and often."

--001a113579b2427f6b0563a37826
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e,monospace">There hasn&#39;t been a release since 2014<br><br></div><div c=
lass=3D"gmail_default" style=3D"font-family:monospace,monospace">&quot;The =
secret of success for an open source project<br></div><div class=3D"gmail_d=
efault" style=3D"font-family:monospace,monospace">is to release early and o=
ften.&quot;<br></div></div>

--001a113579b2427f6b0563a37826--


From MAILER-DAEMON Fri Jan 26 04:19:54 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ef0As-0008J8-M5
	for mharc-gforth@gnu.org; Fri, 26 Jan 2018 04:19:54 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52899)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton@mips.complang.tuwien.ac.at>)
	id 1ef0Aq-0008Hz-Jd
	for gforth@gnu.org; Fri, 26 Jan 2018 04:19:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton@mips.complang.tuwien.ac.at>)
	id 1ef0An-00046I-F3
	for gforth@gnu.org; Fri, 26 Jan 2018 04:19:52 -0500
Received: from a4.complang.tuwien.ac.at ([128.130.173.65]:59122)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <anton@mips.complang.tuwien.ac.at>)
	id 1ef0An-00045L-8Q
	for gforth@gnu.org; Fri, 26 Jan 2018 04:19:49 -0500
Received: from anton by a4 with local (Exim 4.89)
	(envelope-from <anton@mips.complang.tuwien.ac.at>)
	id 1eezsT-0002eF-SN; Fri, 26 Jan 2018 10:00:53 +0100
Date: Fri, 26 Jan 2018 10:00:53 +0100
From: Anton Ertl <anton@mips.complang.tuwien.ac.at>
To: gforth <gforth@gnu.org>
Message-ID: <20180126090053.7c6ojaf54jmwlphc@a4.complang.tuwien.ac.at>
Reply-To: anton@mips.complang.tuwien.ac.at
References: <5a6a5ede.cc4eca0a.1d0bc.5386@mx.google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <5a6a5ede.cc4eca0a.1d0bc.5386@mx.google.com>
User-Agent: NeoMutt/20170113 (1.7.2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 128.130.173.65
Subject: Re: [gforth] How to get stdout into gforth
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Gforth discussion and announcements <gforth.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gforth>,
	<mailto:gforth-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gforth/>
List-Post: <mailto:gforth@gnu.org>
List-Help: <mailto:gforth-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gforth>,
	<mailto:gforth-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Jan 2018 09:19:53 -0000

On Thu, Jan 25, 2018 at 02:49:02PM -0800, Dennis Ruffer wrote:
> Say I want to do something like this: 
> 
> s" cd .. ; pwd" system /home/druffer
> 
> How do I get the output of pwd back into gforth?

You would use OPEN-PIPE instead of SYSTEM, but I don't have an example.

> I see infile-execute, but I don’t see an examples for me to try.

INFILE-EXECUTE is for making any file temporarily the standard input
(so that KEY reads from this file).  But for your problem, you need to
get the output of pwd into gforth.  A pipe does that.

> Is that the right path, or is there another?

You could use the C interface to call chdir(), getcwd(), and then
somehow chdir() back.

- anton


From MAILER-DAEMON Fri Jan 26 04:34:53 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ef0PN-0002ux-OG
	for mharc-gforth@gnu.org; Fri, 26 Jan 2018 04:34:53 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55150)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <carlhansen1234@gmail.com>) id 1ef0PF-0002oJ-DT
	for gforth@gnu.org; Fri, 26 Jan 2018 04:34:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <carlhansen1234@gmail.com>) id 1ef0PE-0004MA-Ia
	for gforth@gnu.org; Fri, 26 Jan 2018 04:34:45 -0500
Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:35650)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <carlhansen1234@gmail.com>)
	id 1ef0PE-0004Ln-ET
	for gforth@gnu.org; Fri, 26 Jan 2018 04:34:44 -0500
Received: by mail-qt0-x22d.google.com with SMTP id g14so26194226qti.2
	for <gforth@gnu.org>; Fri, 26 Jan 2018 01:34:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=HSlrG+PsL6vc2oE2Vs9aZQFpaFiB7uJPRE7/f4qwbNM=;
	b=JF7tm1YEoKE+jG8MBEbxYcS1V+SdvQv36WtjSlHnmbGk+W1OJd0sAD0FvF2iZrQR8x
	WiQ01RGE4gLkJYkwq18mfyElPwZRPb9P1L9KhLBdj/jSRAEJfTYnfMDix4QbNJmqhrUB
	+1lXeP9dBl+2MQso7EW5gdMQ8mfHTGpkkKSMP28Jh2SQ6IKNUBdhmYb8BSYh9stcZGWP
	vH85g5GEdclbaBvPCQ6iXYbgtxZ9UHWypas1RAQ0hsO+OdyubmvCL2DFBAXqBl0/9CRn
	2H59wqirXFjxBTndtUjOZGeYSyo+LTL50jMXbbTdfPQaGVo6r3ESwgYfYbyK9nKXhXwX
	wUJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=HSlrG+PsL6vc2oE2Vs9aZQFpaFiB7uJPRE7/f4qwbNM=;
	b=snmls79QLIm+MdMfAVliD1AKNVPdfMo1u+76KnoobSiODG/5NeWfmoOKvnXgOXKEej
	HCcuF5frXxDwhhiLsE2iX7inRYjuqrRVQnSG3OPsSMWSudnt/2PvruIAzJYagcBoiEcE
	1ixoNJHYcmyf2tZJq8Nlr8MyRE0Kfi6DoP1EsDaV62kRNF2ONBtrZ7tQQmqop3H9GVCQ
	/wcwyr9J44rVgX9mGESqsAtc42rWT5q9dDreXktYtieS45e5LGehKdpYX8ht/7opKZNr
	pvR7jaDluL509ErHb1VC0xFmaduWcr/2KwDgSfkJjyjt9+1q5Wo6HGCx7QrddISnj96K
	lCwQ==
X-Gm-Message-State: AKwxytewGCskTZa++a8PRVRzAu9vl4lOPCP1kuwp3dQz/jhoVJHXnbVC
	1vVrKD0GeZ+7BirowiICEmkEivgbSz+1+R+0VzodWA==
X-Google-Smtp-Source: AH8x224angJHl/bBRfpQu91QNNDS+if6tD1f7We4Rcd9btcIU4cNLDu5zXCdhcheqpqsZcwdMLDN2hHOPdCR2xiWoD0=
X-Received: by 10.200.7.67 with SMTP id k3mr21336744qth.68.1516953270376; Thu,
	25 Jan 2018 23:54:30 -0800 (PST)
MIME-Version: 1.0
Received: by 10.200.63.243 with HTTP; Thu, 25 Jan 2018 23:54:10 -0800 (PST)
In-Reply-To: <5a6a5ede.cc4eca0a.1d0bc.5386@mx.google.com>
References: <5a6a5ede.cc4eca0a.1d0bc.5386@mx.google.com>
From: carl hansen <carlhansen1234@gmail.com>
Date: Thu, 25 Jan 2018 23:54:10 -0800
Message-ID: <CAHEkXCQ_C5UPRonyXb8-ZPUYF2iOYEhbvLJ7TqcQSM10KgKV4Q@mail.gmail.com>
To: Dennis Ruffer <daruffer@gmail.com>
Cc: gforth <gforth@gnu.org>
Content-Type: multipart/alternative; boundary="f403043abfc0d25cad0563a934c2"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400d:c0d::22d
Subject: Re: [gforth] How to get stdout into gforth
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Gforth discussion and announcements <gforth.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gforth>,
	<mailto:gforth-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gforth/>
List-Post: <mailto:gforth@gnu.org>
List-Help: <mailto:gforth-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gforth>,
	<mailto:gforth-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Jan 2018 09:34:52 -0000

--f403043abfc0d25cad0563a934c2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 25, 2018 at 2:49 PM, Dennis Ruffer <daruffer@gmail.com> wrote:

> Say I want to do something like this:
>
>
>
> s" cd .. ; pwd" system /home/druffer
>
>
>
> How do I get the output of pwd back into gforth?
>
>
>
> I see infile-execute, but I don=E2=80=99t see an examples for me to try.
>
>
>
> Is that the right path, or is there another?
>
>
>
> DaR
>
>
>
>
=E2=80=8Bhere's one idea: write to a file ie "pwd >foo"
then read back the file, as so:

=E2=80=8B#! /usr/bin/env gforth

s" foo" r/w create-file

drop  \ really should check for errors

variable fileid
fileid !

s" echo You think this works\?  >foo ; pwd >>foo " system

create filecontents 200 allot
filecontents 200 fileid @ read-file

filecontents 200 type
filecontents 100 dump

fileid @ close-file

bye

=E2=80=8BThere probably is a way to do it with pipes, but it is beyond me.=
=E2=80=8B

--f403043abfc0d25cad0563a934c2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e,monospace"><br></div><div class=3D"gmail_extra"><br><div class=3D"gmail_q=
uote">On Thu, Jan 25, 2018 at 2:49 PM, Dennis Ruffer <span dir=3D"ltr">&lt;=
<a href=3D"mailto:daruffer@gmail.com" target=3D"_blank">daruffer@gmail.com<=
/a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
<div lang=3D"EN-US"><div class=3D"gmail-m_-6739209925272340146WordSection1"=
><p class=3D"MsoNormal">Say I want to do something like this: </p><p class=
=3D"MsoNormal"><u></u>=C2=A0<u></u></p><p class=3D"MsoNormal">s&quot; cd ..=
 ; pwd&quot; system /home/druffer</p><p class=3D"MsoNormal"><u></u>=C2=A0<u=
></u></p><p class=3D"MsoNormal">How do I get the output of pwd back into gf=
orth?</p><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><p class=3D"MsoNorm=
al">I see infile-execute, but I don=E2=80=99t see an examples for me to try=
.</p><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><p class=3D"MsoNormal">=
Is that the right path, or is there another?</p><p class=3D"MsoNormal"><u><=
/u>=C2=A0<u></u></p><p class=3D"MsoNormal">DaR</p><p class=3D"MsoNormal"><u=
></u>=C2=A0<u></u></p><p class=3D"MsoNormal"> </p></div></div></blockquote>=
</div><br><div style=3D"font-family:monospace,monospace" class=3D"gmail_def=
ault">=E2=80=8Bhere&#39;s one idea: write to a file ie &quot;pwd &gt;foo&qu=
ot;<br></div><div style=3D"font-family:monospace,monospace" class=3D"gmail_=
default">then read back the file, as so:<br><br>=E2=80=8B#! /usr/bin/env gf=
orth<br><br>s&quot; foo&quot; r/w create-file<br><br>drop=C2=A0 \ really sh=
ould check for errors<br><br>variable fileid<br>fileid !<br><br>s&quot; ech=
o You think this works\?=C2=A0 &gt;foo ; pwd &gt;&gt;foo &quot; system<br><=
br>create filecontents 200 allot<br>filecontents 200 fileid @ read-file<br>=
<br>filecontents 200 type<br>filecontents 100 dump<br><br>fileid @ close-fi=
le<br><br>bye<br><br></div><div style=3D"font-family:monospace,monospace" c=
lass=3D"gmail_default">=E2=80=8BThere probably is a way to do it with pipes=
, but it is beyond me.=E2=80=8B</div><br></div></div>

--f403043abfc0d25cad0563a934c2--


From MAILER-DAEMON Fri Jan 26 12:19:51 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ef7fL-0007I2-CJ
	for mharc-gforth@gnu.org; Fri, 26 Jan 2018 12:19:51 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52201)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton@mips.complang.tuwien.ac.at>)
	id 1ef7fJ-0007G3-Cw
	for gforth@gnu.org; Fri, 26 Jan 2018 12:19:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton@mips.complang.tuwien.ac.at>)
	id 1ef7fE-0007s8-Lm
	for gforth@gnu.org; Fri, 26 Jan 2018 12:19:49 -0500
Received: from a4.complang.tuwien.ac.at ([128.130.173.65]:59478)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <anton@mips.complang.tuwien.ac.at>)
	id 1ef7fE-0007pZ-EJ
	for gforth@gnu.org; Fri, 26 Jan 2018 12:19:44 -0500
Received: from anton by a4 with local (Exim 4.89)
	(envelope-from <anton@mips.complang.tuwien.ac.at>)
	id 1ef7QI-0004Ch-99; Fri, 26 Jan 2018 18:04:18 +0100
Date: Fri, 26 Jan 2018 18:04:18 +0100
From: Anton Ertl <anton@mips.complang.tuwien.ac.at>
To: carl hansen <carlhansen1234@gmail.com>
Cc: gforth@gnu.org
Message-ID: <20180126170418.unik2xdqqrd7gkpc@a4.complang.tuwien.ac.at>
Reply-To: anton@mips.complang.tuwien.ac.at
References: <CAHEkXCQHYZ+KPJVoyn8LP-rpV1GL5WsLxPZYWJX4ULPcpoMitA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAHEkXCQHYZ+KPJVoyn8LP-rpV1GL5WsLxPZYWJX4ULPcpoMitA@mail.gmail.com>
User-Agent: NeoMutt/20170113 (1.7.2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 128.130.173.65
Subject: Re: [gforth] release
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Gforth discussion and announcements <gforth.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gforth>,
	<mailto:gforth-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gforth/>
List-Post: <mailto:gforth@gnu.org>
List-Help: <mailto:gforth-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gforth>,
	<mailto:gforth-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Jan 2018 17:19:50 -0000

On Thu, Jan 25, 2018 at 05:03:31PM -0800, carl hansen wrote:
> There hasn't been a release since 2014
> 
> "The secret of success for an open source project
> is to release early and often."

I guess that's why we are not successful.

If you are impatient, you can use our early and often snapshots
<https://www.complang.tuwien.ac.at/forth/gforth/Snapshots/>, or build
directly from the git.

If you are patient, we will hopefully release 1.0 this year, but we
also thought that last year:-).

- anton


From MAILER-DAEMON Fri Jan 26 15:52:51 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1efAzT-0000Ux-I2
	for mharc-gforth@gnu.org; Fri, 26 Jan 2018 15:52:51 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38420)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daruffer@gmail.com>) id 1efAzQ-0000U7-L1
	for gforth@gnu.org; Fri, 26 Jan 2018 15:52:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daruffer@gmail.com>) id 1efAzM-0002NR-LN
	for gforth@gnu.org; Fri, 26 Jan 2018 15:52:48 -0500
Received: from mail-ot0-x22d.google.com ([2607:f8b0:4003:c0f::22d]:35722)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <daruffer@gmail.com>) id 1efAzM-0002NC-ED
	for gforth@gnu.org; Fri, 26 Jan 2018 15:52:44 -0500
Received: by mail-ot0-x22d.google.com with SMTP id w26so1543318otj.2
	for <gforth@gnu.org>; Fri, 26 Jan 2018 12:52:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=message-id:mime-version:to:from:subject:date:importance:in-reply-to
	:references; bh=Z13Lfm6AF/HHHn3R/b5WIIdGtDYKNqPVxTcMFksaoIo=;
	b=HiA5XIKYR1P2D5ATnVcooa9mGbzsASsHmhw0cnSTJAxQnL9V9ez3vXo2iFQKjF4xnl
	5m5G55AvpNxg5Tpor9Rodz7THA4WOownMYo63/GQ2V7Js6urvC/KTFV+iolxIXJ1BlTI
	i6oygIOpl3jP6OD0AJT3/8u+VDi5t9Ab92aewq9wgHq6PM5GMGzOup3n5KL0zF3HvVxC
	3SBiVYKon1K5+3WqQh5ZaNujRL35f20T5+CbLqta6MOXUSMn57BUX6p7ywShwb7ZuX9X
	OEjMk2whjKg3n+d28p3w8Gh+iGw23L5ZA1RARlEHZrQjsGJQeeB3P9XxMjsf/ToGb1SK
	uq2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:message-id:mime-version:to:from:subject:date
	:importance:in-reply-to:references;
	bh=Z13Lfm6AF/HHHn3R/b5WIIdGtDYKNqPVxTcMFksaoIo=;
	b=C1k1xMyjpFScVaD63gc+RQLadL03D+PGiQ2kdCHq88USjG3TweXPSRELQbAT4IPV1M
	xfLZ5lzErEpPF2PtJxiXHdWFlXBvBliDZbG9GCvKv9DXo/ke8LIWa+QOI1f1ueL+/BOC
	0rsE/tIDfKxliXprPcU3A2Pq12nq2yfYwd23mlNZeqBnHZqOiZXRTQsUsvFZKi9yarOl
	oA2Lq1b+8ij0eBlqRTHndLLjtea8Gdonr8bxq41aLWy/K/8nMcO8sWCEnjuuUInhR2JO
	0xm7ShK+qoFeRZW+R15Doxfl/V/vZFyWfygZJGFgc3cfZKRm0peLzHCj4zrK6mFVaP5f
	ypjg==
X-Gm-Message-State: AKwxytfLeiXq1FtMaq2kwfa8JRVPXpQ3UCwSqWzKzI918mjzJ15g5S+Q
	NEzCJaJLc0r6nbP0qDTim/HwGlAx
X-Google-Smtp-Source: AH8x227hz+nLzbXxUe7jq4QJsXtBnMFjt0WRRyF17cwvac36uP6DBZg9oUypUneHih8Jj6df1ea2FA==
X-Received: by 10.157.43.104 with SMTP id f37mr15661361otd.123.1516999963452; 
	Fri, 26 Jan 2018 12:52:43 -0800 (PST)
Received: from ?IPv6:::ffff:192.168.2.126? ([128.177.22.110])
	by smtp.gmail.com with ESMTPSA id f5sm4127543oti.75.2018.01.26.12.52.41
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Fri, 26 Jan 2018 12:52:42 -0800 (PST)
Message-ID: <5a6b951a.055f9d0a.df461.7ef6@mx.google.com>
MIME-Version: 1.0
To: "anton@mips.complang.tuwien.ac.at" <anton@mips.complang.tuwien.ac.at>, 
	gforth <gforth@gnu.org>
From: Dennis Ruffer <daruffer@gmail.com>
Date: Fri, 26 Jan 2018 12:52:42 -0800
Importance: normal
X-Priority: 3
In-Reply-To: <20180126090053.7c6ojaf54jmwlphc@a4.complang.tuwien.ac.at>
References: <5a6a5ede.cc4eca0a.1d0bc.5386@mx.google.com>
	<20180126090053.7c6ojaf54jmwlphc@a4.complang.tuwien.ac.at>
Content-Type: multipart/alternative;
	boundary="_BBB50E87-9E27-48F1-AF60-D2552F812910_"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:4003:c0f::22d
Subject: Re: [gforth] How to get stdout into gforth
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Gforth discussion and announcements <gforth.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gforth>,
	<mailto:gforth-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gforth/>
List-Post: <mailto:gforth@gnu.org>
List-Help: <mailto:gforth-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gforth>,
	<mailto:gforth-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Jan 2018 20:52:49 -0000

--_BBB50E87-9E27-48F1-AF60-D2552F812910_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Thanks everyone for the suggestions. While OPEN-PIPE sounds like the best p=
lace for me to investigate, it turns out that the Makefile logic I was tryi=
ng to convert didn=E2=80=99t actually need to pull the pwd output into gfor=
th. I translated:

echo $(1): file://$$(cd $(dir $@); pwd)/$(notdir $@)

from Makefile to gforth as:

COMBINED-STRING print_coverage_out_dir +," cd " coverage_out +, +," ; pwd"
CR ( a n ) TYPE ." : file://" print_coverage_out_dir COUNT SYSTEM $? THROW
( target ) COUNT coverage_out COUNT /STRING TYPE

And I got:

CTS Tests API-NDK Coverage Report: file:///home/druffer/master/out/host/lin=
ux-x86/cts-api-coverage

Identical to the original, so it is sufficient, for now. I have some other =
work where OPEN-PIPE might be useful, but I=E2=80=99ve got enough for the i=
mmediate issue to move onto the next problems.

Thanks again!

DaR

From: Anton Ertl
Sent: Friday, January 26, 2018 1:00 AM
To: gforth
Cc: Dennis Ruffer
Subject: Re: [gforth] How to get stdout into gforth

On Thu, Jan 25, 2018 at 02:49:02PM -0800, Dennis Ruffer wrote:
> Say I want to do something like this:=20
>=20
> s" cd .. ; pwd" system /home/druffer
>=20
> How do I get the output of pwd back into gforth?

You would use OPEN-PIPE instead of SYSTEM, but I don't have an example.

> I see infile-execute, but I don=E2=80=99t see an examples for me to try.

INFILE-EXECUTE is for making any file temporarily the standard input
(so that KEY reads from this file).  But for your problem, you need to
get the output of pwd into gforth.  A pipe does that.

> Is that the right path, or is there another?

You could use the C interface to call chdir(), getcwd(), and then
somehow chdir() back.

- anton


--_BBB50E87-9E27-48F1-AF60-D2552F812910_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta ht=
tp-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta name=
=3DGenerator content=3D"Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang=3DEN-US link=3Dblue vlink=3D"#954F72"><div cla=
ss=3DWordSection1><p class=3DMsoNormal>Thanks everyone for the suggestions.=
 While OPEN-PIPE sounds like the best place for me to investigate, it turns=
 out that the Makefile logic I was trying to convert didn=E2=80=99t actuall=
y need to pull the pwd output into gforth. I translated:</p><p class=3DMsoN=
ormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>echo $(1): file://$$(cd $(d=
ir $@); pwd)/$(notdir $@)</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p c=
lass=3DMsoNormal>from Makefile to gforth as:</p><p class=3DMsoNormal><o:p>&=
nbsp;</o:p></p><p class=3DMsoNormal>COMBINED-STRING print_coverage_out_dir =
+,&quot; cd &quot; coverage_out +, +,&quot; ; pwd&quot;</p><p class=3DMsoNo=
rmal>CR ( a n ) TYPE .&quot; : file://&quot; print_coverage_out_dir COUNT S=
YSTEM $? THROW</p><p class=3DMsoNormal>( target ) COUNT coverage_out COUNT =
/STRING TYPE</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNor=
mal>And I got:</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoN=
ormal>CTS Tests API-NDK Coverage Report: file:///home/druffer/master/out/ho=
st/linux-x86/cts-api-coverage</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p>=
<p class=3DMsoNormal>Identical to the original, so it is sufficient, for no=
w. I have some other work where OPEN-PIPE might be useful, but I=E2=80=99ve=
 got enough for the immediate issue to move onto the next problems.</p><p c=
lass=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Thanks again!</p=
><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>DaR</p><p c=
lass=3DMsoNormal><o:p>&nbsp;</o:p></p><div style=3D'mso-element:para-border=
-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'>=
<p class=3DMsoNormal style=3D'border:none;padding:0in'><b>From: </b><a href=
=3D"mailto:anton@mips.complang.tuwien.ac.at">Anton Ertl</a><br><b>Sent: </b=
>Friday, January 26, 2018 1:00 AM<br><b>To: </b><a href=3D"mailto:gforth@gn=
u.org">gforth</a><br><b>Cc: </b><a href=3D"mailto:daruffer@gmail.com">Denni=
s Ruffer</a><br><b>Subject: </b>Re: [gforth] How to get stdout into gforth<=
/p></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>On =
Thu, Jan 25, 2018 at 02:49:02PM -0800, Dennis Ruffer wrote:</p><p class=3DM=
soNormal>&gt; Say I want to do something like this: </p><p class=3DMsoNorma=
l>&gt; </p><p class=3DMsoNormal>&gt; s&quot; cd .. ; pwd&quot; system /home=
/druffer</p><p class=3DMsoNormal>&gt; </p><p class=3DMsoNormal>&gt; How do =
I get the output of pwd back into gforth?</p><p class=3DMsoNormal><o:p>&nbs=
p;</o:p></p><p class=3DMsoNormal>You would use OPEN-PIPE instead of SYSTEM,=
 but I don't have an example.</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p>=
<p class=3DMsoNormal>&gt; I see infile-execute, but I don=E2=80=99t see an =
examples for me to try.</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p cla=
ss=3DMsoNormal>INFILE-EXECUTE is for making any file temporarily the standa=
rd input</p><p class=3DMsoNormal>(so that KEY reads from this file).=C2=A0 =
But for your problem, you need to</p><p class=3DMsoNormal>get the output of=
 pwd into gforth.=C2=A0 A pipe does that.</p><p class=3DMsoNormal><o:p>&nbs=
p;</o:p></p><p class=3DMsoNormal>&gt; Is that the right path, or is there a=
nother?</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Y=
ou could use the C interface to call chdir(), getcwd(), and then</p><p clas=
s=3DMsoNormal>somehow chdir() back.</p><p class=3DMsoNormal><o:p>&nbsp;</o:=
p></p><p class=3DMsoNormal>- anton</p><p class=3DMsoNormal><o:p>&nbsp;</o:p=
></p></div></body></html>=

--_BBB50E87-9E27-48F1-AF60-D2552F812910_--



From MAILER-DAEMON Fri Jan 26 18:15:49 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1efDDp-0006ww-2s
	for mharc-gforth@gnu.org; Fri, 26 Jan 2018 18:15:49 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37108)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daruffer@gmail.com>) id 1efDDk-0006ut-3X
	for gforth@gnu.org; Fri, 26 Jan 2018 18:15:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daruffer@gmail.com>) id 1efDDf-0003AR-5n
	for gforth@gnu.org; Fri, 26 Jan 2018 18:15:44 -0500
Received: from mail-ot0-x22a.google.com ([2607:f8b0:4003:c0f::22a]:44351)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <daruffer@gmail.com>) id 1efDDe-00038h-Jt
	for gforth@gnu.org; Fri, 26 Jan 2018 18:15:38 -0500
Received: by mail-ot0-x22a.google.com with SMTP id t20so1798616ote.11
	for <gforth@gnu.org>; Fri, 26 Jan 2018 15:15:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=message-id:mime-version:to:from:subject:date:importance:in-reply-to
	:references; bh=PaM4xW25DmyPNuq5oNUjNdLxOYZYrJZvcXxjWlmaReI=;
	b=Tfcf5yp74n4TaFc6Sgsc+JVCI5UGPyv8HWJAR/3Qj9Fe9Useb7SYBoBkEZL2HNr8sr
	145dHEcDRI8IwN05z32IeINe++SgAw97JX3LDjhSznf4qpUyKpzwxxBT8he5woY53QZR
	U9IUbdQiz5mRYP2jF1YYRKemDB0QhPlb4xP/ivFBGtM4A6NfTWNcA6HgJjFxQUnvsTV5
	CnenIleAsWGdnX4wUWbRPtqys1I19qVbkXOSnESQHCnIYOweMexwckdxZ19NBdI7rdS2
	p6xNCg5cw0iTflwQ8nO+ICTLGqyLkFAzYeqFuOg2EDUWP4j10SIST0uQdJjkIm5FS/YF
	yAZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:message-id:mime-version:to:from:subject:date
	:importance:in-reply-to:references;
	bh=PaM4xW25DmyPNuq5oNUjNdLxOYZYrJZvcXxjWlmaReI=;
	b=f6RU33x5mnAhEs8bh9y1/SVPIWCvCX528JXepa3Pr2zDEyFHJ5yM+bsHNzsnuzyRnU
	O+A4Z8k7Jb0qRnYB0rnsbSEbKQuAq8kO2Y95ra/aLI+yxBPp8duyi+2CeZ566adQ0x5k
	yPoknyZut03jgxacsYG5pxnlYRvwjoMRbGXSvuLrzhn3gh2c6Z8UCEemLPCdkRxm4fJO
	O89BKQ6D2gY+eoxjRtbVv4QU9fCt75Td970sVS6JhUHxJUFtQCTtC37IUE3TZyxsoWtS
	2b12jaqQfj0arl4PdNO2gdvfoze2zbIYUV5myiiJHkDPc73IDJZiVozrArDlDSUxMJB3
	lk6Q==
X-Gm-Message-State: AKwxytdmWss1pteEpKstGUAuQMLtB+wRFj4dSHI9DrZrKQvYzvu4y8s+
	7ziYZFJRV9JS/ZPZjveJMKI=
X-Google-Smtp-Source: AH8x2246W2OYBp/JEIXrQLjQD+orjYlEdOoNnB8NLq8UsgSgJzY8NgIMRGMuAhVmXtB3y82q1FZ9Cw==
X-Received: by 10.157.43.213 with SMTP id u79mr4102174ota.219.1517008537650;
	Fri, 26 Jan 2018 15:15:37 -0800 (PST)
Received: from ?IPv6:::ffff:192.168.2.126? ([128.177.22.110])
	by smtp.gmail.com with ESMTPSA id
	j16sm4353880oth.42.2018.01.26.15.15.36
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Fri, 26 Jan 2018 15:15:36 -0800 (PST)
Message-ID: <5a6bb698.10549d0a.9d065.8eb8@mx.google.com>
MIME-Version: 1.0
To: "anton@mips.complang.tuwien.ac.at" <anton@mips.complang.tuwien.ac.at>, 
	gforth <gforth@gnu.org>
From: Dennis Ruffer <daruffer@gmail.com>
Date: Fri, 26 Jan 2018 15:15:37 -0800
Importance: normal
X-Priority: 3
In-Reply-To: <5a6b951a.055f9d0a.df461.7ef6@mx.google.com>
References: <5a6a5ede.cc4eca0a.1d0bc.5386@mx.google.com>
	<20180126090053.7c6ojaf54jmwlphc@a4.complang.tuwien.ac.at>
	<5a6b951a.055f9d0a.df461.7ef6@mx.google.com>
Content-Type: multipart/alternative;
	boundary="_878AD301-2B6B-4E3B-BFAC-2006DD2D362C_"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:4003:c0f::22a
Subject: Re: [gforth] How to get stdout into gforth
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Gforth discussion and announcements <gforth.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gforth>,
	<mailto:gforth-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gforth/>
List-Post: <mailto:gforth@gnu.org>
List-Help: <mailto:gforth-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gforth>,
	<mailto:gforth-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Jan 2018 23:15:45 -0000

--_878AD301-2B6B-4E3B-BFAC-2006DD2D362C_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Almost, but there=E2=80=99s a critical mistake covering up a problem.

    ( target ) COUNT coverage_out C@ /STRING TYPE

Produces:

CTS Tests API-NDK Coverage Report: file:///home/druffer/master/out/host/lin=
ux-x86/cts-api-coverage
/test-coverage.html ok

Which has an extra new line. ;(

DaR

From: Dennis Ruffer
Sent: Friday, January 26, 2018 12:52 PM
To: anton@mips.complang.tuwien.ac.at; gforth
Subject: RE: [gforth] How to get stdout into gforth

Thanks everyone for the suggestions. While OPEN-PIPE sounds like the best p=
lace for me to investigate, it turns out that the Makefile logic I was tryi=
ng to convert didn=E2=80=99t actually need to pull the pwd output into gfor=
th. I translated:

echo $(1): file://$$(cd $(dir $@); pwd)/$(notdir $@)

from Makefile to gforth as:

COMBINED-STRING print_coverage_out_dir +," cd " coverage_out +, +," ; pwd"
CR ( a n ) TYPE ." : file://" print_coverage_out_dir COUNT SYSTEM $? THROW
( target ) COUNT coverage_out COUNT /STRING TYPE

And I got:

CTS Tests API-NDK Coverage Report: file:///home/druffer/master/out/host/lin=
ux-x86/cts-api-coverage

Identical to the original, so it is sufficient, for now. I have some other =
work where OPEN-PIPE might be useful, but I=E2=80=99ve got enough for the i=
mmediate issue to move onto the next problems.

Thanks again!

DaR

From: Anton Ertl
Sent: Friday, January 26, 2018 1:00 AM
To: gforth
Cc: Dennis Ruffer
Subject: Re: [gforth] How to get stdout into gforth

On Thu, Jan 25, 2018 at 02:49:02PM -0800, Dennis Ruffer wrote:
> Say I want to do something like this:=20
>=20
> s" cd .. ; pwd" system /home/druffer
>=20
> How do I get the output of pwd back into gforth?

You would use OPEN-PIPE instead of SYSTEM, but I don't have an example.

> I see infile-execute, but I don=E2=80=99t see an examples for me to try.

INFILE-EXECUTE is for making any file temporarily the standard input
(so that KEY reads from this file).=C2=A0 But for your problem, you need to
get the output of pwd into gforth.=C2=A0 A pipe does that.

> Is that the right path, or is there another?

You could use the C interface to call chdir(), getcwd(), and then
somehow chdir() back.

- anton



--_878AD301-2B6B-4E3B-BFAC-2006DD2D362C_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta ht=
tp-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta name=
=3DGenerator content=3D"Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang=3DEN-US link=3Dblue vlink=3D"#954F72"><div cla=
ss=3DWordSection1><p class=3DMsoNormal>Almost, but there=E2=80=99s a critic=
al mistake covering up a problem.</p><p class=3DMsoNormal><o:p>&nbsp;</o:p>=
</p><p class=3DMsoNormal>=C2=A0=C2=A0=C2=A0 ( target ) COUNT coverage_out C=
@ /STRING TYPE</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoN=
ormal>Produces:</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMso=
Normal>CTS Tests API-NDK Coverage Report: file:///home/druffer/master/out/h=
ost/linux-x86/cts-api-coverage</p><p class=3DMsoNormal>/test-coverage.html =
ok</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Which =
has an extra new line. ;(</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p c=
lass=3DMsoNormal>DaR</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><div styl=
e=3D'mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt=
;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal style=3D'border:none;paddi=
ng:0in'><b>From: </b><a href=3D"mailto:daruffer@gmail.com">Dennis Ruffer</a=
><br><b>Sent: </b>Friday, January 26, 2018 12:52 PM<br><b>To: </b><a href=
=3D"mailto:anton@mips.complang.tuwien.ac.at">anton@mips.complang.tuwien.ac.=
at</a>; <a href=3D"mailto:gforth@gnu.org">gforth</a><br><b>Subject: </b>RE:=
 [gforth] How to get stdout into gforth</p></div><p class=3DMsoNormal><o:p>=
&nbsp;</o:p></p><p class=3DMsoNormal>Thanks everyone for the suggestions. W=
hile OPEN-PIPE sounds like the best place for me to investigate, it turns o=
ut that the Makefile logic I was trying to convert didn=E2=80=99t actually =
need to pull the pwd output into gforth. I translated:<o:p></o:p></p><p cla=
ss=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>echo $(1): file://=
$$(cd $(dir $@); pwd)/$(notdir $@)<o:p></o:p></p><p class=3DMsoNormal><o:p>=
&nbsp;</o:p></p><p class=3DMsoNormal>from Makefile to gforth as:<o:p></o:p>=
</p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>COMBINED=
-STRING print_coverage_out_dir +,&quot; cd &quot; coverage_out +, +,&quot; =
; pwd&quot;<o:p></o:p></p><p class=3DMsoNormal>CR ( a n ) TYPE .&quot; : fi=
le://&quot; print_coverage_out_dir COUNT SYSTEM $? THROW<o:p></o:p></p><p c=
lass=3DMsoNormal>( target ) COUNT coverage_out COUNT /STRING TYPE<o:p></o:p=
></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>And I g=
ot:<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoN=
ormal>CTS Tests API-NDK Coverage Report: file:///home/druffer/master/out/ho=
st/linux-x86/cts-api-coverage<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp=
;</o:p></p><p class=3DMsoNormal>Identical to the original, so it is suffici=
ent, for now. I have some other work where OPEN-PIPE might be useful, but I=
=E2=80=99ve got enough for the immediate issue to move onto the next proble=
ms.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoN=
ormal>Thanks again!<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p=
><p class=3DMsoNormal>DaR<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o=
:p></p><div style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0=
pt 0in 0in 0in'><p class=3DMsoNormal><b>From: </b><a href=3D"mailto:anton@m=
ips.complang.tuwien.ac.at">Anton Ertl</a><br><b>Sent: </b>Friday, January 2=
6, 2018 1:00 AM<br><b>To: </b><a href=3D"mailto:gforth@gnu.org">gforth</a><=
br><b>Cc: </b><a href=3D"mailto:daruffer@gmail.com">Dennis Ruffer</a><br><b=
>Subject: </b>Re: [gforth] How to get stdout into gforth<o:p></o:p></p></di=
v><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>On Thu, Ja=
n 25, 2018 at 02:49:02PM -0800, Dennis Ruffer wrote:<o:p></o:p></p><p class=
=3DMsoNormal>&gt; Say I want to do something like this: <o:p></o:p></p><p c=
lass=3DMsoNormal>&gt; <o:p></o:p></p><p class=3DMsoNormal>&gt; s&quot; cd .=
. ; pwd&quot; system /home/druffer<o:p></o:p></p><p class=3DMsoNormal>&gt; =
<o:p></o:p></p><p class=3DMsoNormal>&gt; How do I get the output of pwd bac=
k into gforth?<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p c=
lass=3DMsoNormal>You would use OPEN-PIPE instead of SYSTEM, but I don't hav=
e an example.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p cl=
ass=3DMsoNormal>&gt; I see infile-execute, but I don=E2=80=99t see an examp=
les for me to try.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p>=
<p class=3DMsoNormal>INFILE-EXECUTE is for making any file temporarily the =
standard input<o:p></o:p></p><p class=3DMsoNormal>(so that KEY reads from t=
his file).&nbsp; But for your problem, you need to<o:p></o:p></p><p class=
=3DMsoNormal>get the output of pwd into gforth.&nbsp; A pipe does that.<o:p=
></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>&=
gt; Is that the right path, or is there another?<o:p></o:p></p><p class=3DM=
soNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>You could use the C inte=
rface to call chdir(), getcwd(), and then<o:p></o:p></p><p class=3DMsoNorma=
l>somehow chdir() back.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p=
></p><p class=3DMsoNormal>- anton<o:p></o:p></p><p class=3DMsoNormal><o:p>&=
nbsp;</o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></htm=
l>=

--_878AD301-2B6B-4E3B-BFAC-2006DD2D362C_--



