From MAILER-DAEMON Tue Feb 25 18:41:33 2020
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1j6jpV-0002Lh-O9
	for mharc-gforth@gnu.org; Tue, 25 Feb 2020 18:41:33 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:35707)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <philipkingsmith@gmail.com>) id 1j6jpS-0002LK-QB
 for gforth@gnu.org; Tue, 25 Feb 2020 18:41:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <philipkingsmith@gmail.com>) id 1j6jpR-00054I-IL
 for gforth@gnu.org; Tue, 25 Feb 2020 18:41:30 -0500
Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:41654)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <philipkingsmith@gmail.com>)
 id 1j6jpR-0004vS-7b
 for gforth@gnu.org; Tue, 25 Feb 2020 18:41:29 -0500
Received: by mail-lj1-x232.google.com with SMTP id h23so839257ljc.8
 for <gforth@gnu.org>; Tue, 25 Feb 2020 15:41:28 -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=h9Hm+rGn6AJusZ/WHTVySdiKGQA6YWotuGfcMuRKRnA=;
 b=vGcRtWVE4jBPclOKr+CipF9Aa7PWS4P6J0CNblcM+VMFafKnV6brF070ZNDsZWm+qb
 4nCVJMyKynHB+dGRgJeQ8LgW5yLLdtZld7ouDlBQUYCt8BYgQn1QoOiwtQZWR2nTj3M9
 ZZ6rogkw+Ul/NMmSXs5tnQ101b6ImAJw3KVm0zLh8QuwfEwuOrjolPzPHf3qA9seLgw8
 91AVOLfu+bO5dSZa/lnveCZ2oorsm9P//EusQPjzpo2Aw/w+9RjjqY8gogZd+RaszAo/
 eQRP44UqoseLdDXVPhmFxkBdasWEdxijNc++uVPckZ8BIQQrqkDqptpio8S3SyL+dxRU
 iGCg==
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=h9Hm+rGn6AJusZ/WHTVySdiKGQA6YWotuGfcMuRKRnA=;
 b=UkBWZn2dPJKZ0mkeFjmLD8yoc+mOgIHulP9wETGMWM2yDH1ShqDSpex2UzbMutxXt2
 cB6UBIqPouOvINcpWHsanamdOAmPb+g7PCCFDltdBs3TfgzPb9qMv2OAmobCplNZTWYC
 4XDAJUvgwCz0B/e68Xu/HJpBLTHxriR2Ot/jXrk+aqiYOVf4bx59AdP78mW1val4uAiJ
 pKhIkpIhTG15C2rlNHi0eBf+shLfjCAsROR2GprXnvxMw7m6k/DQt9pa0+BSbd5IOhzj
 bII2Cl4LX3FBeQZRx48c7KQ2pUffE/B1EZjGT/9bpRrR1fDJ8V0w+vGowJPUAvcVyECX
 ay+w==
X-Gm-Message-State: APjAAAWpud5kHuRaZ6BuVHIggFNJirBkna6uFlNCaiq6SXzZuaI9PJ04
 zxmHAq9BpInDkv9tQyO0iUuArYRAejrz2a5ERVt7Kuzd
X-Google-Smtp-Source: ADFU+vvgqvhnoTAuX80+vZG156lyqBtM+lKBk/5u3P9eNDo2RMhDR8bfGJ1bhtEiCNMm3mCVl64njcCSwxW2vaIQOmY=
X-Received: by 2002:a2e:b80e:: with SMTP id u14mr886178ljo.17.1582674087035;
 Tue, 25 Feb 2020 15:41:27 -0800 (PST)
MIME-Version: 1.0
From: Philip Smith <philipkingsmith@gmail.com>
Date: Tue, 25 Feb 2020 16:41:14 -0700
Message-ID: <CABZ21YHQHSSSn2q0S1o+x4KC=M4akEhCou8DwNS3Lm1LH1JYUQ@mail.gmail.com>
Subject: How to get stdin that is passed to Gforth from command line in Debian
 for example?
To: gforth@gnu.org
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::232
Content-Type: text/plain; charset="UTF-8"
X-Content-Filtered-By: Mailman/MimeDel 2.1.23
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.23
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: <https://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, 25 Feb 2020 23:41:32 -0000

I need help with how to get the stdin from command line like the following:

 $  echo "hello world testing" | ./test.fs -e "(get-ext-stdin$)"

I want to receive the string "hello world testing" in this command line
echoed string to my gforth program called test.fs .   Currently the
following command line works with my test.f code:

$ echo "(get-ext-stdin$) hello world test" | ./test.fs

This works because the command (get-ext-stdin$) is a word in test.fs that
takes the source and changes >in to point to the end of the stdin string.
This i could still use but i want to be able to not have to put the command
in the string itself as in the first example.

Here is my current code that works with the above command line example
where the word (get-ext-stdin$) is in the string.

\  start of test.fs
#! /usr/local/bin/gforth

variable ext-stdin$

: otherwords
  ." this is other words working here!" cr ;

: (get-ext-stdin$)
  source ext-stdin$ $!
  ext-stdin$ $@ dump cr
  source swap drop >in !
  otherwords
  ." now for some more stuff " cr
  bye ;

:noname ; is bootmessage
\ end of test.fs

The output of this code using the first command line is as follows :

(get-ext-stdin$) hello world test
7FFFF6225778: 28 67 65 74  2D 65 78 74 - 2D 73 74 64  69 6E 24 29
 (get-ext-stdin$)
7FFFF6225788: 20 68 65 6C  6C 6F 20 77 - 6F 72 6C 64  20 74 65 73   hello
world tes
7FFFF6225798: 74                       -                           t

this is other words working here!
now for some more stuff


I understand that the stdin is being treated as the keyboard input in this
code and as such the strings could execute commands in gforth or cause an
error if they did not exist so some way to drop this input from being
interpreted would be a good idea but not totally needed since the main word
that i would use to start this code would always exit with bye.

Any solution or ideas would be appreciated!
-- 
                \|||/
-----0oo---( o o )---oo0------
                (_)
>From the hand of PKS

From MAILER-DAEMON Tue Feb 25 18:58:16 2020
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1j6k5g-0005mP-FN
	for mharc-gforth@gnu.org; Tue, 25 Feb 2020 18:58:16 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:43955)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <bernd@net2o.de>) id 1j6k5c-0005ln-S1
 for gforth@gnu.org; Tue, 25 Feb 2020 18:58:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bernd@net2o.de>) id 1j6k5b-0000Ai-M1
 for gforth@gnu.org; Tue, 25 Feb 2020 18:58:12 -0500
Received: from mail.net2o.de ([2a03:4000:1d:bf::11e7:20]:54054)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <bernd@net2o.de>) id 1j6k5b-0008LD-5E
 for gforth@gnu.org; Tue, 25 Feb 2020 18:58:11 -0500
Received: from daiyu.localnet
 (200116b8268803009d131ee850e03d72.dip.versatel-1u1.de
 [IPv6:2001:16b8:2688:300:9d13:1ee8:50e0:3d72])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (Client did not present a certificate)
 by mail.net2o.de (Postfix) with ESMTPSA id C20A940244;
 Wed, 26 Feb 2020 00:58:06 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=net2o.de; s=mail;
 t=1582675086; bh=8g8qStmHFajaxE4wBPiqlM3vauP3Ux6alHFvuqKX63s=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
 b=IDq3UW3xu3JCIF2pMKGBh3bHFE21Qd9b27ojVPHn+qSWEdXCuH3GVla2DTmhOe8VF
 VxPmBm8YH9Pp5sJdej6tPp4Bdf8JfWRlvNtl4bijiX0PPavKc5+RyudceEhg8rLC/e
 X7M04P681CI3oVTDU+qKGzMvrwXUVrPh2+3DKi3Q=
From: Bernd Paysan <bernd@net2o.de>
To: gforth@gnu.org
Cc: Philip Smith <philipkingsmith@gmail.com>
Subject: Re: How to get stdin that is passed to Gforth from command line in
 Debian for example?
Date: Wed, 26 Feb 2020 00:58:02 +0100
Message-ID: <2122999.0cqyL8uBSM@daiyu>
In-Reply-To: <CABZ21YHQHSSSn2q0S1o+x4KC=M4akEhCou8DwNS3Lm1LH1JYUQ@mail.gmail.com>
References: <CABZ21YHQHSSSn2q0S1o+x4KC=M4akEhCou8DwNS3Lm1LH1JYUQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart2081292.vZM7liAO96";
 micalg="pgp-sha256"; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a03:4000:1d:bf::11e7:20
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.23
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: <https://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, 25 Feb 2020 23:58:14 -0000

--nextPart2081292.vZM7liAO96
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

Am Mittwoch, 26. Februar 2020, 00:41:14 CET schrieb Philip Smith:
> I need help with how to get the stdin from command line like the following:
> 
>  $  echo "hello world testing" | ./test.fs -e "(get-ext-stdin$)"

Just use stdin as file descriptor, and slurp-fid to read all from that file. 
Example:

echo "This is a test" | gforth -e "stdin slurp-fid type bye"

So your (get-ext-stdin$) is

: (get-ext-stdin$)  stdin slurp-fid ;

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/

--nextPart2081292.vZM7liAO96
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAl5VtIoACgkQ9y2Uk5Mt
oGfUig/9F8ltVl7ZQX6+Kw/wgZ28cohXjS6X4YLfhPPodN1XEVA68KXU3eGzZEtt
6kSwRZMXkaC8ISAHJAEHBrSf/g2BGENqCByF+Ro/qSxc8msCVkJVlQUj/v11rszI
eQR/kuM5gwmfd/2FSEgbNUkU+VJazFFGEOTvquzc4vZBASUtK7AcHpcXiY2w9nSG
t27Z7neI45/SoCi345TmqgANeDWx35aVu5ePIQBhc1CQJSgXxFyAyGGHJvJXPAnz
IdI8a+Bzs0dog80YqcZRw0gjVoYyNck/77Fu+GgzEeLxPL2AcFF3l/aGgJ5wDiVU
JHP/moeRj/pqDq2aAx6cp2nTEuJ2v8NvEkLApbEy0nHl2itCM7npBO+RJ0VMhkDk
stdmb5PAiPuOA+f2PsJ5GThqQPHsv14QbWn+MZQ49NNwBTSfFHKeB18NEipG8LDk
3LryGFcFDqrZ4H2+VXmeQfuaV7+vzW8lmWxAo01rCSI4CaAvmuWSaQLPDeKxYE/w
5qUp8hEkEVPnZPJz01yVjqkycMk+KM7z3+E8yBaL5Z4vG90mY5S3gtoOeXe94IAo
2oc+FP2IGn/M03h0agGzgUn2yjshLRRce8FQt14s7w3EDLWXZKaCQgmHVQBnoSg+
LJKb4A9K708YlKQFcrDTbC2ixHWDD6v3QOiiKWt3fCHZl3g8tsw=
=D5I5
-----END PGP SIGNATURE-----

--nextPart2081292.vZM7liAO96--





From MAILER-DAEMON Tue Feb 25 21:35:43 2020
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1j6mY3-0006t3-FA
	for mharc-gforth@gnu.org; Tue, 25 Feb 2020 21:35:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:37598)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <philipkingsmith@gmail.com>) id 1j6mY0-0006r8-Js
 for gforth@gnu.org; Tue, 25 Feb 2020 21:35:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <philipkingsmith@gmail.com>) id 1j6mXz-0000zd-7r
 for gforth@gnu.org; Tue, 25 Feb 2020 21:35:40 -0500
Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:37198)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <philipkingsmith@gmail.com>)
 id 1j6mXy-0000rW-SL
 for gforth@gnu.org; Tue, 25 Feb 2020 21:35:39 -0500
Received: by mail-lj1-x229.google.com with SMTP id q23so1208332ljm.4
 for <gforth@gnu.org>; Tue, 25 Feb 2020 18:35:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=kqsOk45PhVIttd+3oHNGIjGxhX9kheFlSl51G6WpvIU=;
 b=WO4mMZYqibfgDv3FiB3XfDvuo9qqgr9otP9WLw54EhkImE+Qpg6/c+3dUiQL2DeiBk
 P2R0sbrApb13YjVcFtUAkZ2snAXtfx5PyjOF6V6WaQcMpkAtwhHxjT71YARXyaAL0iId
 TxJW+NVyvWfrgKIZgjJwJB3+5QUsPyojLSuinIs9xosjOWI2QL0ZO12HrRc3p+GicZgy
 +b7AkgPx/MVp/yfdYSgCEkDRlTIlUKRFaxLHxd36diD7BAaDGkXAcHDk4waW5M4q2iEA
 QqTaBzbYrodhh2rP1XgezcLKCfRIJTKRAqWy/pLXX+3ted5YPE+J4U44rBu9f/7Mwiq4
 YrVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=kqsOk45PhVIttd+3oHNGIjGxhX9kheFlSl51G6WpvIU=;
 b=RVFtMZdNLGqbzwos6vZCi/DN+Q7Xxvh8AibCrPSuVu6nGhJX4vTCL5fXcAYpl5oNxH
 96Jo6d2dhmt0gVCheoz4q0nRxKoTXsjYasw/xvW3k/s1W3lieex9yLY5BoFlPoHvJt/1
 F0aKLTFcRQQQ2k0FD6W3AhW7gVLhVOVrzTxd3dw7qH0xNDJlcVvyZ4PuiHw/XW8pwMy6
 T+fr+DiwKjQElZmhkZ/UEDfMP3PnksoZ/BX17x6JVeTs4YvgTmwagwvroWo2sVYGL5Ta
 aT2gnfOCs2ap2znTJp4BoEXaDaB+vOCNCXkzQJ6jNyXHMDJ6ytmqljKKwAK3ArWvXQ1K
 U9cQ==
X-Gm-Message-State: APjAAAWsA61Y+XhoY7ojVPAadpnuExY+p1QTi9+gZTUlS64K4wuHQXbM
 2lPF75yGiOvy12ETe6JKa1q9Guke/eFOv/F8ucw=
X-Google-Smtp-Source: ADFU+vtesoyk0/cGvmN8CuLixsCf1wQEFC5HXi6eO7k2HGaDXfUEZcPn7rBllfAJs2p9Jrr6oaY173/4WRGAvEZ2olk=
X-Received: by 2002:a2e:1459:: with SMTP id 25mr1272947lju.189.1582684537155; 
 Tue, 25 Feb 2020 18:35:37 -0800 (PST)
MIME-Version: 1.0
References: <CABZ21YHQHSSSn2q0S1o+x4KC=M4akEhCou8DwNS3Lm1LH1JYUQ@mail.gmail.com>
 <2122999.0cqyL8uBSM@daiyu>
In-Reply-To: <2122999.0cqyL8uBSM@daiyu>
From: Philip Smith <philipkingsmith@gmail.com>
Date: Tue, 25 Feb 2020 19:35:26 -0700
Message-ID: <CABZ21YGZXBv71Esh1m7tOxTNvi55MW4wYJBvhVJzHO=sSOqX3w@mail.gmail.com>
Subject: Re: How to get stdin that is passed to Gforth from command line in
 Debian for example?
To: Bernd Paysan <bernd@net2o.de>
Cc: gforth@gnu.org
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::229
Content-Type: text/plain; charset="UTF-8"
X-Content-Filtered-By: Mailman/MimeDel 2.1.23
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.23
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: <https://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: Wed, 26 Feb 2020 02:35:42 -0000

Very Nice... well to be honest i did try that at some point but i also have
been working on several things at the same time.   I bet i thought that
slurp-fid test i did failed for some other reason and i did not identify it.
Very much appreciated.  It seems so obvious now!...
PKS


On Tue, Feb 25, 2020 at 4:58 PM Bernd Paysan <bernd@net2o.de> wrote:

> Am Mittwoch, 26. Februar 2020, 00:41:14 CET schrieb Philip Smith:
> > I need help with how to get the stdin from command line like the
> following:
> >
> >  $  echo "hello world testing" | ./test.fs -e "(get-ext-stdin$)"
>
> Just use stdin as file descriptor, and slurp-fid to read all from that
> file.
> Example:
>
> echo "This is a test" | gforth -e "stdin slurp-fid type bye"
>
> So your (get-ext-stdin$) is
>
> : (get-ext-stdin$)  stdin slurp-fid ;
>
> --
> Bernd Paysan
> "If you want it done right, you have to do it yourself"
> net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
> https://net2o.de/
>


-- 
                \|||/
-----0oo---( o o )---oo0------
                (_)
>From the hand of PKS

From MAILER-DAEMON Fri Feb 28 13:26:38 2020
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1j7kLN-0004NL-SU
	for mharc-gforth@gnu.org; Fri, 28 Feb 2020 13:26:37 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:57801)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <jjxxpp@gmail.com>) id 1j7kLL-0004KS-4Y
 for gforth@gnu.org; Fri, 28 Feb 2020 13:26:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jjxxpp@gmail.com>) id 1j7kLK-0003wi-5b
 for gforth@gnu.org; Fri, 28 Feb 2020 13:26:35 -0500
Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:38156)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <jjxxpp@gmail.com>) id 1j7kLJ-0003wB-VB
 for gforth@gnu.org; Fri, 28 Feb 2020 13:26:34 -0500
Received: by mail-wm1-x330.google.com with SMTP id n64so2960559wme.3
 for <gforth@gnu.org>; Fri, 28 Feb 2020 10:26:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-language;
 bh=VdxCeG9zAnBGkm8DRzQ2j4bL2b1YtGAxKStXkrtyH1Q=;
 b=fXh+WXgo6u+5nPzXJe0sQNZvAjW+fwwUgHLMHhtMLaapNaiwafPlQoFu9JkSdDHvwA
 gNe6vh32vRIqm2QmekQRzb73HwcmeUXg6f9xiaqq9VeB+GLJD53NEp+u97S8xF5O3Ftk
 eDU/2R9NRn1RwsxjBKgczDK9/DFq/zLBQnBQfc5vUPo5T0wceyr9yam4tal8UkjlVfOy
 8EAY/VUAYUrXIa1UKmTOoSMsPoV5lEvkeaszXirogCaEyIMf2UlBQkV1NJq7pySmf/uo
 9we/FsAqh86unPY3XpKKMKThtsqIQMiKgM32jaM0/Oh1Fq9aMtdcQz5tmDVP95/E6s2D
 AE7Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-language;
 bh=VdxCeG9zAnBGkm8DRzQ2j4bL2b1YtGAxKStXkrtyH1Q=;
 b=L5wSUtfdYXCK/woSMAlW4AI9AknXoJoJ3sRc+P4CYGpsaZAsEl92tOWd7+0X4GQ6DL
 HtoB4x522q0E3eJmglSalinIlImxXIvEYmkXOjg4nhoQMAq3mS3MTn2tDn94uF/fZy7f
 2ndyhZ2Y7s/7eLRbh6yb04SoS/XpDy/ilcpk2W72fiLv1iHhFLor31JDcfy2d1Ks596y
 CRLkJZ+ku/dv7stFikNFebGc3zT17Tknc8oPgt4LUwB8H8m1gNZIKtLWm9kyZfKq68gC
 h/YZMdRUeqIKwrQTTxoZR9BGPZsswACkdFJq7dxfxYuojDAEx/T5Dx0aXAaXPBS3zAPI
 JaRg==
X-Gm-Message-State: APjAAAVuhIuKkurgxt0aWw9ZHhRkQiwY36qjwoxz19RqJeKzfqs02nXw
 UzC8RKElNCIZrQBmbClu9dpTKp6E
X-Google-Smtp-Source: APXvYqyf8OZZs6hxyVHsxkVEItTB4xo7/xlE5fb/SCFB4QYIEMlY/IkRDNqZc4TJyYkX4w1PsTfSXw==
X-Received: by 2002:a7b:c386:: with SMTP id s6mr3185773wmj.28.1582914392848;
 Fri, 28 Feb 2020 10:26:32 -0800 (PST)
Received: from [192.168.1.233]
 (cpc92304-cmbg19-2-0-cust537.5-4.cable.virginm.net. [82.24.198.26])
 by smtp.gmail.com with ESMTPSA id q9sm13928660wrx.18.2020.02.28.10.26.31
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 28 Feb 2020 10:26:31 -0800 (PST)
To: gforth@gnu.org, bernd@net2o.de
From: John PH <jjxxpp@gmail.com>
Subject: Unexpected emit Behaviour
Message-ID: <0b1eb2b6-5c8c-4e3b-a6ef-2667c346b23b@gmail.com>
Date: Fri, 28 Feb 2020 18:26:30 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.4.1
MIME-Version: 1.0
Content-Language: en-GB
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::330
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.23
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.23
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: <https://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, 28 Feb 2020 18:26:36 -0000

Hello,

Thanks for your great work with gforth.


I found when use emit with gforth 0.7.9_20200227 under android 9, on my 
Samsung tablet and my Samsung phone, if the value I am "emitting" is 
between 255 and 128 there is an extra 1 left on the stack afterwards. It 
behaves as I would expect between 0 and 127.


Doing the same thing on Ubuntu 18.04 gforth 0.7.9_20200227 always leaves 
nothing on the stack for all values between 255 and 0. This is what I 
would expect.


The Android behaviour not what I was expecting and wonder if it is a bug.


Typing:

128 emit


... should show the issue.


Thank you,


John


From MAILER-DAEMON Fri Feb 28 14:00:49 2020
Received: from list by lists.gnu.org with archive (Exim 4.90_1)
	id 1j7ksT-0006NS-AA
	for mharc-gforth@gnu.org; Fri, 28 Feb 2020 14:00:49 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:36223)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <bernd@net2o.de>) id 1j7ksQ-0006Kt-UF
 for gforth@gnu.org; Fri, 28 Feb 2020 14:00:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bernd@net2o.de>) id 1j7ksP-0007W6-NA
 for gforth@gnu.org; Fri, 28 Feb 2020 14:00:46 -0500
Received: from mail.net2o.de ([185.183.156.191]:56976)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <bernd@net2o.de>) id 1j7ksP-0007Se-6Q
 for gforth@gnu.org; Fri, 28 Feb 2020 14:00:45 -0500
Received: from daiyu.localnet
 (200116b82694c9009173e6bf1c0fedc6.dip.versatel-1u1.de
 [IPv6:2001:16b8:2694:c900:9173:e6bf:1c0f:edc6])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (Client did not present a certificate)
 by mail.net2o.de (Postfix) with ESMTPSA id 200BA5385A;
 Fri, 28 Feb 2020 20:00:41 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=net2o.de; s=mail;
 t=1582916441; bh=OShGk7kJzo6jHkhB/uP0D64wTaVT39+sYRCDt6xoivI=;
 h=From:To:Subject:Date:In-Reply-To:References:From;
 b=N7KPi17ddYaT2fga+b/1Pq43dn6ZtW/kP3q7Ld/rsB95Lsty7QCmzwIOEO+Xq4ddR
 yoReDpXEAAwH0eWTnET721A1SJDxA9iBSYPaMqgt8LrhxmsjUFH0t9ayZaeLERENoc
 veGicHnpnipsIqH0LbVyp6HOnxps/QJvGJr0FQMY=
From: Bernd Paysan <bernd@net2o.de>
To: gforth@gnu.org, John PH <jjxxpp@gmail.com>
Subject: Re: Unexpected emit Behaviour
Date: Fri, 28 Feb 2020 20:00:36 +0100
Message-ID: <2569835.Y9G5CnC5i6@daiyu>
In-Reply-To: <0b1eb2b6-5c8c-4e3b-a6ef-2667c346b23b@gmail.com>
References: <0b1eb2b6-5c8c-4e3b-a6ef-2667c346b23b@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart3274819.pthT2sEaTi";
 micalg="pgp-sha256"; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 185.183.156.191
X-BeenThere: gforth@gnu.org
X-Mailman-Version: 2.1.23
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: <https://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, 28 Feb 2020 19:00:48 -0000

--nextPart3274819.pthT2sEaTi
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

Am Freitag, 28. Februar 2020, 19:26:30 CET schrieb John PH:
> Hello,
> 
> Thanks for your great work with gforth.
> 
> 
> I found when use emit with gforth 0.7.9_20200227 under android 9, on my
> Samsung tablet and my Samsung phone, if the value I am "emitting" is
> between 255 and 128 there is an extra 1 left on the stack afterwards. It
> behaves as I would expect between 0 and 127.
> 
> 
> Doing the same thing on Ubuntu 18.04 gforth 0.7.9_20200227 always leaves
> nothing on the stack for all values between 255 and 0. This is what I
> would expect.
> 
> 
> The Android behaviour not what I was expecting and wonder if it is a bug.
> 
> 
> Typing:
> 
> 128 emit
> 
> 
> ... should show the issue.

Thanks for reporting this bug. Fixed in git, will get out with the usual 
release cycle.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/

--nextPart3274819.pthT2sEaTi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAl5ZY1QACgkQ9y2Uk5Mt
oGcfIA/9EuMk/p3UNTfpPCJeXRq2sIV2meN73r60Vova2ODKAwds/OpA0K5rHV6y
fvlAhLJ/z6n/KfwtFMGEzxytF2/NBnfMHbypOC6TLdleXdFE05wCuE8pI0o3lNh6
Lny7aVbG9uO+W7WM4d3tvqWX01ap0jP4r5GX0qQ/clFoB0hwCu4+gvjBqJrHrM9X
u9GfJ6aN+2VVqNVv21fylHZ2A0H7ldj+mqjdy/TtA6RuRbGnq+EP4gspwDirBS+9
Az2zjhCNHYkb0AauNnT7OqxqEdrW4kQHeTAmyY6PK0cpt4coqd4eYZMVdJaBVMwW
f1wVfu5wFXXCSZ5+iCqqlUp87W23jr5i9yGxpGanbxZlNOM5W8Cvgo5ZqOC69qHW
E17pRqkbTad0MkKJ2tWlEhVHc4d9zx9ZyRE2KbYizMRzsTKvqZFrWZ9IQena/6zl
rm289anXXgzXtK5+cZjskGe0fm9qYmYLi/bjE7TmexwE5ARJavrEVchHmY0tz64Q
RMIX+qtla0bnfYOCP+y/CJdkRpzFWAwXPYjbTf1HvTlhihR5yOnaBS1Wmjhtt0ic
6YfPm9Vb+tAKkcphgjUQPtIHrrEmgoInOZRdkMSrIPRaqiho8vcpRcH0yc3Y2lsn
v//T3IHYo0QJ727HCPRG54Zd6Bl07336DHUlfyjsT8kmvHaX59I=
=u2p7
-----END PGP SIGNATURE-----

--nextPart3274819.pthT2sEaTi--





