Module Name:    src
Committed By:   tsutsui
Date:           Sat Dec  5 18:29:50 UTC 2020

Modified Files:
        src/distrib/miniroot: install.sub

Log Message:
Appease awk warnings on suppressing dmesg timestamps.

> awk: warning: escape sequence `\[' treated as plain `['
>  source line number 1
>  context is
>         { h=$0; >>>  gsub("^[ <<<
> awk: warning: escape sequence `\]' treated as plain `]'
>  source line number 1

Should be pulled up to netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/distrib/miniroot/install.sub

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/miniroot/install.sub
diff -u src/distrib/miniroot/install.sub:1.54 src/distrib/miniroot/install.sub:1.55
--- src/distrib/miniroot/install.sub:1.54	Sat Dec  5 18:24:10 2020
+++ src/distrib/miniroot/install.sub	Sat Dec  5 18:29:50 2020
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: install.sub,v 1.54 2020/12/05 18:24:10 tsutsui Exp $
+#	$NetBSD: install.sub,v 1.55 2020/12/05 18:29:50 tsutsui Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1611,6 +1611,6 @@ mi_filter_msgbuf() {
 
 mi_filter_dmesg() {
 	# Remove timestemps, sort.
-	dmesg | awk '{ h=$0; gsub("^\[[0-9. ]*\] ", "", h); print h; }' \
+	dmesg | awk '{ h=$0; gsub("^[[0-9. ]*] ", "", h); print h; }' \
 	    | sort -u
 }

Reply via email to