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
                }'
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to