Page MenuHomeFreeBSD

cal: don't print terminal control characters unless stdout is a TTY
ClosedPublic

Authored by asomers on Jan 13 2023, 8:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 9, 7:11 AM
Unknown Object (File)
Nov 21 2024, 12:35 PM
Unknown Object (File)
Nov 19 2024, 2:51 PM
Unknown Object (File)
Nov 17 2024, 9:49 AM
Unknown Object (File)
Nov 10 2024, 7:15 AM
Unknown Object (File)
Nov 9 2024, 1:29 PM
Unknown Object (File)
Nov 9 2024, 11:25 AM
Unknown Object (File)
Nov 9 2024, 10:52 AM
Subscribers
None

Details

Summary

A similar change was made in svn r223931, but it was incomplete, working
only when the utility was invoked as "ncal". Fix the same issue when
invoking as "cal".

PR: 268936
Reported by: Ray Bellis <ray@bellis.me.uk>
MFC after: 2 weeks
Sponsored by: Axcient

Test Plan

manually tested with "cal | xxd"

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable