bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] problem on Using getline from a Coprocess


From: 夏凯
Subject: [bug-gawk] problem on Using getline from a Coprocess
Date: Wed, 9 Nov 2011 21:55:03 +0800

i want to try "Using getline from a Coprocess" but i got a error,
21:37:43#tp#~> cat a.awk
#!/usr/bin/awk
{print $0 | "base64"
}
21:37:47#tp#~> cat b.awk
#!/usr/bin/awk
{print $0 |& "base64"
"base64"|&getline a
print a}
21:37:51#tp#~> echo abc|awk -f a.awk
YWJjCg==
21:37:55#tp#~> awk --version|head -n2
GNU Awk 3.1.6
Copyright (C) 1989, 1991-2007 Free Software Foundation.
21:38:07#tp#~> echo abc|awk -f b.awk
^C       #here it won't stop, so i have to use CTRL+C to stop it.
21:38:16#tp#~>
any help is appreciated.
-- 
contact me:
MSN: address@hidden
GTALK: address@hidden



reply via email to

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