Re: Using pipes example
Bernd Paysan <[email protected]> Wed, 09 Jul 2025 19:26:43 +0200
| Newsgroups | gmane.comp.lang.forth.gforth |
|---|---|
| Message-ID | <5430103.vFx2qVVIhK@wukong> |
--nextPart5865390.lGaqSPkdTl Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Bernd Paysan <[email protected]> To: Elko Tchernev <[email protected]>, gforth-mXXj517/[email protected] Cc: gforth-mXXj517/[email protected], Ulf Herrman <striness-3/[email protected]> Subject: Re: Using pipes example Date: Wed, 09 Jul 2025 19:26:43 +0200 Message-ID: <5430103.vFx2qVVIhK@wukong> In-Reply-To: <87ms9eklkl.fsf-3/[email protected]> MIME-Version: 1.0 Am Mittwoch, 9. Juli 2025, 06:57:46 Mitteleurop=C3=A4ische Sommerzeit schri= eb Ulf=20 Herrman: > The documentation isn't completely clear on this, but 'open-pipe' opens > a pipe as in popen(3), not as in mkfifo(3) or pipe(2): >=20 > s" echo hi" w/o open-pipe throw ok 1 > hi If you want to show how to actually use the pipe, better use r/o for this=20 example, as w/o opens the pipe for writing (the shell command then consumes= =20 the data): s" echo hi" r/o open-pipe throw >r ok r:1 pad 100 r@ read-file throw ok 1 r:1 pad swap type hi ok r:1 r> close-file throw ok Anton updated the documentation of the development branch accordingly. =2D-=20 Bernd Paysan "If you want it done right, you have to do it yourself" net2o id: kQusJzA;7*?t=3Duy@X}1GWr!+0qqp_Cn176t4(dQ* https://net2o.de/ --nextPart5865390.lGaqSPkdTl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAmhuplMACgkQ9y2Uk5Mt oGe7/w/7BnfZ8CTFF8Nwq4dFMBLhTz2sLcCs2NwXErdIakh1I7tuCJ07tP4/t29B i1Qze1RzHoyyz1u9dNR+1z2EVeqqd8Ta7B58WE6AUvlpoMJj7O0TO7pGl1Ed7A8g 3rnxYun7603blzLYy7trWzXhMeQu7FhLoDQ7mw0n5BjpK2c1WzEFPKj/z8byhAcm 4B3qsNvEXL0R8vAJ6GuB9qIV06s+4/HnDTJ6GIbip3ABVC62liV/QalOvtvzBJAn 4RseYY5flYR2D0ZoSO+FsHGTU7srzCeHeLCK2FPMak+Vk6hj9RrsCro7Z4yiNk8w LMdk8MW1lButI4I7MuKsqKccOJRtS5vIC44WCebI+BfaxzzH50stQVRAmQesKnVO f19glwv/8ec7YugdM6qPAaGovIARaCpZchxlZViVmFdw7wQ4XFrFt3slklRhQwML 9bBgk/qjUhLXVkQwtu2FS3Ev5q/+50SzaeW2Qebb1M750pMhEQJEvbTfwGv/5jed KDzmaO+Ivr+AuwM5pfaradTdzlhfnPKj0uDVAHsuqSRYH9rWG2t/zVE3+/nH1W8j Krp0QvxaZIV6LoxfSiPwA+g8woAh54p2NwnfmaynGZRvsVl27XXg3PQ4G2fpS3Vy uIStTuKwg6AvZWlj/Wo3X8RRZnhp/LoLcE7Q3JOQZxpal9k/Fwc= =NtfF -----END PGP SIGNATURE----- --nextPart5865390.lGaqSPkdTl--