Timeline for Using NF with FPAT – what am I doing wrong?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 11, 2020 at 14:16 | history | edited | CommunityBot | Commonmark migration | |
| Mar 9, 2019 at 16:39 | comment | added | Anthony Geoghegan | @TomM While you don't (yet) have enough reputation to upvote helpful answers, I suggest you accept this answer (click on the check mark next to it). It's highly unlikely that you'll get a better one. See unix.stackexchange.com/help/someone-answers BTW, I was the one who upvoted your question because it was such a good one. Welcome to Unix & Linux! | |
| Mar 2, 2019 at 23:17 | comment | added | G-Man Says 'Reinstate Monica' | @GeorgeVasiliou Thanks for checking that. I observed the bug in version 4.1.1. | |
| Mar 2, 2019 at 23:16 | history | edited | G-Man Says 'Reinstate Monica' | CC BY-SA 4.0 | Added version number. |
| Mar 2, 2019 at 21:36 | comment | added | George Vasiliou | using gawk 4.2.1 under Debian Testing, i got case B with our without temp=$1 | |
| Mar 2, 2019 at 17:19 | comment | added | G-Man Says 'Reinstate Monica' | (1) The inclusion of the parentheses in FPAT is (as far as I can tell) unnecessary, but it’s harmless; I wouldn’t call it an error. Adding the (^,)| at the start was the error. But, yes, you may quote me if you say my name and link to the answer. (2) Adding temp = $1 was a kludgy workaround to get the program to produce the desired results even with the wrong FPAT. So you don’t need to use the kludgy workaround and also fix FPAT. Sorry I wasn’t clearer about that. | |
| Mar 2, 2019 at 16:55 | comment | added | TomM | Forgot to mention that I didn't have to add temp = $1. It works fine without it. | |
| Mar 2, 2019 at 16:47 | comment | added | TomM | Interesting and such a simple solution. The regex I used was copied from the GNU AWK website/page, "The GNU Awk User’s Guide": GNU.org except that I added the (^,)| at the start for some now unknown reason (doh!?). Thank you for your time, detailed solution and well laid-out presentation - much appreciated and I learned something. I wonder if I should let GNU.org know about the error in the manual, re: the parenthesis in the regex. Would it be OK if I quote your solution? | |
| Mar 2, 2019 at 3:16 | history | answered | G-Man Says 'Reinstate Monica' | CC BY-SA 4.0 |