Author: dteske
Date: Mon Dec 12 19:12:31 2016
New Revision: 309928
URL: https://svnweb.freebsd.org/changeset/base/309928

Log:
  If you're not going to make use of the products of a match() in awk
  (e.g., RSTART and RLENGTH variables) then use ~ instead of match()

Modified:
  head/usr.sbin/bsdinstall/scripts/wlanconfig

Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 19:11:04 2016        
(r309927)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 19:12:31 2016        
(r309928)
@@ -95,8 +95,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 ($i ~ /[[:lower:]]/)
+                               if ($(i+1) ~ /[[:lower:]]/)
                                        printf "\\\\\\ "
                                else
                                        printf "\n"
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to