svn commit: r309928 - head/usr.sbin/bsdinstall/scripts
Devin Teske
dteske at FreeBSD.org
Mon Dec 12 19:12:33 UTC 2016
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"
More information about the svn-src-all
mailing list