NetBSD-Bugs archive

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

bin/57812: logger -s adds extra CR



>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@localhost:/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:



Home | Main Index | Thread Index | Old Index