gawk: test2ver5.awk:36: {tag = (strftime ("%Y-%m-%d") " " (strftime("%r"))
gawk: test2ver5.awk:36: ^ unexpected newline or end of string
It then snags every subsequent line in the program with "unexpected newline" and "syntax error".
Whereas this version of the function, it's happy with:
function datetime()
{tag1 = strftime ("%Y-%m-%d");
tag2 = strftime("%r");
return (tag1 " " tag2);
}
Hope this useful; not a stupid error on my part.
Kind regards
Christopher Durant