Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2016 18:45:52 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309917 - head/usr.sbin/bsdinstall/scripts
Message-ID:  <201612121845.uBCIjq5i073295@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Mon Dec 12 18:45:52 2016
New Revision: 309917
URL: https://svnweb.freebsd.org/changeset/base/309917

Log:
  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 \)

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

Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig	Mon Dec 12 18:43:42 2016	(r309916)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig	Mon Dec 12 18:45:52 2016	(r309917)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612121845.uBCIjq5i073295>