From 95a79bb97af9998cf3416f62f6f0f6dfcad2fb1d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 3 Jun 2017 01:28:18 +1200 Subject: Use full length($0) rather than just length The latter is allowed by POSIX, but not historically accepted everywhere and the former being explicit is more readable anyway --- games/squ.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'games') diff --git a/games/squ.awk b/games/squ.awk index abd16934..be72a3b6 100644 --- a/games/squ.awk +++ b/games/squ.awk @@ -1,5 +1,5 @@ # Make a reduced Latin square out of each line of input -l = length { +l = length($0) { str = toupper($0) for (j = 0; j < l; j++) for (k = 0; k < l; k++) -- cgit v1.2.3