|
From: | Janis Papanagnou |
Subject: | Re: [bug-gawk] gawk - 'inplace' feature ignores file's access flags (read-only) |
Date: | Thu, 11 Jun 2015 02:27:10 +0200 |
Hi Andy!
> In the future, can you please group-reply to CC the mailing list? As the discussion went I considered the issue already closed. (If you think my replies to your comments are nonetheless of some use to the bug-list I want to suggest to set 'reply-to' in the mail header which is, I think, the standard procedure exactly for that purpose. It's certainly easier than to ask every poster.) [...] > > > > Now, according to the implemented > > 'inplace' logic, I have to add an explicit `print` statement just to re-write the > > file with the same contents it had before... - also not a great solution. :-/ > > I agree that this is an inelegant solution. If I were you, I'd load the > map file using getline in a BEGIN rule. You can't be serious suggesting to add a clumsy getline loop as a substitute. Using getline is an even more ugly hack for something where there's a neat standard idiom (if I avoid 'inplace'). But thanks anyway for your involvement. I recognize I have to work around the issue anyway in some way, so I can as well maintain POSIX standard conformance and avoid this GNU awk specific feature if it doesn't provide any advantage - or rather, if we have to pay for one advantage by other disadvantages. Regards, Janis |
[Prev in Thread] | Current Thread | [Next in Thread] |