From owner-svn-src-head@freebsd.org Mon Dec 12 18:45:53 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B6E4BC726DA; Mon, 12 Dec 2016 18:45:53 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 867012B9; Mon, 12 Dec 2016 18:45:53 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBCIjqe1073296; Mon, 12 Dec 2016 18:45:52 GMT (envelope-from dteske@FreeBSD.org) Received: (from dteske@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBCIjq5i073295; Mon, 12 Dec 2016 18:45:52 GMT (envelope-from dteske@FreeBSD.org) Message-Id: <201612121845.uBCIjq5i073295@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dteske set sender to dteske@FreeBSD.org using -f From: Devin Teske Date: Mon, 12 Dec 2016 18:45:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309917 - head/usr.sbin/bsdinstall/scripts X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 18:45:53 -0000 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"