Am Mittwoch, 9. Juli 2025, 06:57:46 Mitteleuropäische Sommerzeit schrieb Ulf 
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):
> 
> 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 
example, as w/o opens the pipe for writing (the shell command then consumes 
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.

-- 
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/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to