Re: MOTD is not created correctly (since 2022/02/18)
Date: Tue, 23 May 2023 04:37:40 UTC
On 2023-05-22 8:18 PM, Jamie Landeg-Jones wrote: > I've just finally updated to 13-stable, and can't be the first to notice this?! > > /etc/rc.d/motd contains the line: > > uname -v | sed -e 's,^\([^#]*\) #\(.* [1-2][0-9][0-9][0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > > Note the space before the "$" - needed because the uname -v output used > to have a trailing space. This was fixed and comitted on 2022/02/18: > > https://cgit.freebsd.org/src/commit/usr.bin/uname/uname.c?id=7e05fa3b449007adaa6e588ebb3b8d76f30b355c > > Since then, the sed doesn't match, so the uname(1) output is unchanged. > > There's no point altering the sed to work with both posibilities, so can > someone commit the fix of removing the ' ' before the '$' in /etc/rc.d/motd ? Maybe https://reviews.freebsd.org/D40225 ? (Nice find by the way! I always feel that something was not right but haven't looked close enough.) Cheers,