awk(1) match() takes a regex, use /.../ to remind ourselves of this

NB: The difference between "..." and /.../ for a regex in awk is that
quoted strings go through escape expansion first (e.g., \\ becomes \)
This commit is contained in:
Devin Teske 2016-12-12 18:45:52 +00:00
parent 4fa8c81cc3
commit 3204364296

View File

@ -93,8 +93,8 @@ dialog_country_select()
sub(/Regulatory.*/, "")
for (i = 1; i <= NF; i++) {
printf "%s", $i
if (match($i, "[[:lower:]]"))
if (match($(i+1), "[[:lower:]]"))
if (match($i, /[[:lower:]]/))
if (match($(i+1), /[[:lower:]]/))
printf "\\\\\\ "
else
printf "\n"