bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] Coprocessing deadlocks?


From: Panos Papadopoulos
Subject: [bug-gawk] Coprocessing deadlocks?
Date: Thu, 4 Jan 2018 08:00:35 +0200

Hi Arnold!
Happy new year!

I'm sure that you're aware of this topic in comp.lang.awk:
https://groups.google.com/forum/#!topic/comp.lang.awk/pz4gmSw0uas

If you're not, here is a simple script that seems to be malfunctioning:

BEGIN { 
cmd = "tr a-z A-Z"
print "abc" |& cmd 
cmd |& getline
print

The above must print ABC, but seems to freeze (gawk version 4.2).
If you change cmd to "cat" works fine.

Regards,
Panos

--
Panos I. Papadopoulos
Thessaloniki
GREECE

reply via email to

[Prev in Thread] Current Thread [Next in Thread]