Date: Thu, 5 Mar 2015 00:37:55 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r279612 - stable/10/usr.sbin/bsdconfig/share Message-ID: <201503050037.t250bt0l086417@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Thu Mar 5 00:37:54 2015 New Revision: 279612 URL: https://svnweb.freebsd.org/changeset/base/279612 Log: MFC r278467: Replace the only instance of sed(1) in bsdconfig(8) with awk(1). Modified: stable/10/usr.sbin/bsdconfig/share/keymap.subr Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.sbin/bsdconfig/share/keymap.subr ============================================================================== --- stable/10/usr.sbin/bsdconfig/share/keymap.subr Thu Mar 5 00:34:33 2015 (r279611) +++ stable/10/usr.sbin/bsdconfig/share/keymap.subr Thu Mar 5 00:37:54 2015 (r279612) @@ -219,7 +219,7 @@ f_keymap_get_all() echo -n "$k " # NOTE: Translate '8x8' to '8x08' before sending to # sort(1) so that things work out as we might expect. - debug= keymap_$k get desc | sed -e 's/8x8/8x08/g' + debug= keymap_$k get desc | awk 'gsub(/8x8/,"8x08")||1' done | sort -k2 | awk '{ printf "%s%s", (started ? " " : ""), $1; started = 1 }'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503050037.t250bt0l086417>