NetBSD Problem Report #57812

From  Wed Jan  3 08:13:00 2024
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id B43781A9239
	for <>; Wed,  3 Jan 2024 08:13:00 +0000 (UTC)
Message-Id: <>
Date: Wed,  3 Jan 2024 08:12:59 +0000 (UTC)
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
NetBSD srv-63b7 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022 amd64
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.


NetBSD Home
NetBSD PR Database Search

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