diff options
author | dteske <dteske@FreeBSD.org> | 2015-03-05 00:37:54 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2015-03-05 00:37:54 +0000 |
commit | 04c4a83715fc9a0d7d2cc6840aaf858cac88bd1f (patch) | |
tree | 92fabdc5a273ab3b0eacdb52de5b7f987c66d475 /usr.sbin/bsdconfig | |
parent | 82862f31e2ae392281f896a2a61a23a6ad6f0f5b (diff) | |
download | FreeBSD-src-04c4a83715fc9a0d7d2cc6840aaf858cac88bd1f.zip FreeBSD-src-04c4a83715fc9a0d7d2cc6840aaf858cac88bd1f.tar.gz |
MFC r278467:
Replace the only instance of sed(1) in bsdconfig(8) with awk(1).
Diffstat (limited to 'usr.sbin/bsdconfig')
-rw-r--r-- | usr.sbin/bsdconfig/share/keymap.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/share/keymap.subr b/usr.sbin/bsdconfig/share/keymap.subr index d4f391c..41f59cf 100644 --- a/usr.sbin/bsdconfig/share/keymap.subr +++ b/usr.sbin/bsdconfig/share/keymap.subr @@ -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 }' |