bug-gnu-utils
[Top][All Lists]
Advanced

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

gawk: "print" not allowed in PATTERN, only in ACTION?


From: Dan Jacobson
Subject: gawk: "print" not allowed in PATTERN, only in ACTION?
Date: 02 Jul 2001 16:34:06 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

The gawk manual's "print" node  doesn't say why one can't use "print" in the 
PATTERN portion:
gawk-3.1.0 '1 && print "wow" && 1{print}'<<!
mom
!

gawk-3.1.0 '(a=m $1 && (print a > "/dev/stderr")&& a ~ "mom")'<<!
wwww
!

An error is triggered at "print".
Let's say I want to print out some debugging info right then and
there... do I have to "hold it in till we get to the next rest area"? :-)
-- 
http://www.geocities.com/jidanni Tel+886-4-25854780 e-mail:restore .com.



reply via email to

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