Port-hp300 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Installing NetBSD 8.2 on model 375



On Thu, Dec 03, 2020 at 03:49:29AM +0900, Izumi Tsutsui wrote:
> This is caused by the following lines:
> 
> https://nxr.netbsd.org/xref/src/distrib/miniroot/install.sub?r=1.53#1612
> ---
>    1612 mi_filter_dmesg() {
>    1613 	# Remove timestemps, sort.
>    1614 	dmesg | awk '{ h=$0; gsub("^\[[0-9. ]*\] ", "", h); print h; }' \
>    1615 	    | sort -u
>    1616 }
> ---
> 
> Maybe it should be gsub("^\\[[0-9. ]*\\] ", "", h) ?

I may be overlooking something, but isn't it really just plain

	gsub("^[[0-9. ]*\\] ", "", h)

?

Martin


Home | Main Index | Thread Index | Old Index