NetBSD Problem Report #57812

From www@netbsd.org  Wed Jan  3 08:13:00 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B43781A9239
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  3 Jan 2024 08:13:00 +0000 (UTC)
Message-Id: <20240103081259.5EB7F1A923A@mollari.NetBSD.org>
Date: Wed,  3 Jan 2024 08:12:59 +0000 (UTC)
From: george@galis.org
Reply-To: george@galis.org
To: gnats-bugs@NetBSD.org
Subject: logger -s adds extra CR
X-Send-Pr-Version: www-1.0

>Number:         57812
>Category:       bin
>Synopsis:       logger -s adds extra CR
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 03 08:15:00 +0000 2024
>Originator:     George Georgalis
>Release:        NetBSD 9.3
>Organization:
>Environment:
NetBSD srv-63b7 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
The logger command seems to inject an extra CR for each line of stdin, when -s is used. In some cases it can be corrected with input, however it is probably not the correct behavior...

srv-63b7# echo blah | logger -s -t "title"
title: blah

srv-63b7# echo -n blah | logger -s -t "title"
title: blah
srv-63b7# cvs update -dP | logger -s -t "title"
...

The extra CR per line does not appear in syslog messages.
>How-To-Repeat:

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.