For Programmers: Free Programming Magazines  


Home > Archive > AWK > February 2005 > Semantics of implicit "open" in gawk









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Semantics of implicit "open" in gawk
Stephan Titard

2005-02-15, 3:56 am

Hi, I seem to get recurrently bitten by this...
[color=darkred]
10:28:34:
$ gawk --source='BEGIN { print "ok" > "/hi1"; print "nope" }'
gawk: fatal: can't redirect to `/hi1' (Permission denied)

any way to catch this in pure gawk


could we have print return something useful (C-like or not) and catch it
(would be on par with getline no?)

thanks
steph
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com