ntpq: missing empty lines between command outputs
A Debian user filed a bug asking if this was intentional. Note the removal of the newline between the server information and the "associd" line. If we don't care, that's fine. I'm just looking for an answer.
In Debian 12 ntpq no longer prints empty line between output from commands. Opposed to behaviour in Debian 11. Is this considered a bug? This broke a script that relied on empty lines to split between sections.
Output on a machine with Debian 12:
# /usr/bin/ntpq -c version -c 'timeout 100' -c raw -c peers -c rv
ntpsec-1.2.2
primary timeout 100 ms
Output set to raw
remote refid st t when poll reach delay offset jitter
=======================================================================================================
-_gateway 194.58.206.20 2 u 102 256 377 0.1288 0.8730 0.4424
time-0.intinor.com .POOL. 16 p - 256 0 0.0000 0.0000 0.0001
time-1.intinor.com .POOL. 16 p - 256 0 0.0000 0.0000 0.0001
time-2.intinor.com .POOL. 16 p - 256 0 0.0000 0.0000 0.0001
time-3.intinor.com .POOL. 16 p - 256 0 0.0000 0.0000 0.0001
time-4.intinor.com .POOL. 16 p - 256 0 0.0000 0.0000 0.0001
+time.cloudflare.com 10.128.9.203 3 u 144 256 377 8.7309 2.0481 0.7405
+time.cloudflare.com 10.128.9.203 3 u 156 256 377 9.0629 0.9906 0.6539
+sesto4-ntp-001.aaplimg.com .SHM. 1 u 108 256 377 8.7566 1.8756 0.7280
+sesto4-ntp-002.aaplimg.com .SHM. 1 u 141 256 377 8.9205 0.9387 0.6344
*ntp.netnod.se .PPS. 1 u 210 256 377 3.9167 1.1960 0.4523
associd=0 status=0x0015,
leap=0, stratum=2, precision=-24, rootdelay=3.917, rootdisp=36.108,
refid=194.58.200.20, reftime=0xe83e9744.fefdc632, tc=8, peer=17784,
offset=1.386000, frequency=-11.814575, sys_jitter=0.292344,
clk_jitter=4.486162, clock=0xe83e9f3b.4fdf0b3e, processor="x86_64",
system="Linux/5.15.114-core_64_preempt", version="ntpd ntpsec-1.2.2",
clk_wander=0.436272, tai=37, leapsec=2017-01-01T00:00Z,
expire=2023-12-28T00:00Z, mintc=0
Output on a machine with Debian 11:
# /usr/bin/ntpq -c version -c 'timeout 100' -c raw -c peers -c rv
ntpq 4.2.8p15@1.3728-o Wed Sep 23 11:46:38 UTC 2020 (1)
Output set to raw
remote refid st t when poll reach delay offset jitter
==============================================================================
_gateway 194.58.206.20 2 u 34 64 3 0.159 -0.268 0.094
time-0.intinor. .POOL. 16 p - 64 0 0.000 +0.000 0.000
time-1.intinor. .POOL. 16 p - 64 0 0.000 +0.000 0.000
time-2.intinor. .POOL. 16 p - 64 0 0.000 +0.000 0.000
time-3.intinor. .POOL. 16 p - 64 0 0.000 +0.000 0.000
time-4.intinor. .POOL. 16 p - 64 0 0.000 +0.000 0.000
+time.cloudflare 10.128.9.203 3 u 59 64 7 9.134 +0.212 0.201
+time.cloudflare 10.128.9.203 3 u 58 64 7 9.150 +0.516 0.184
-sesto4-ntp-001. .SHM. 1 u 56 64 7 8.739 +0.323 0.156
-defra1-ntp-002. .GPSs. 1 u 59 64 7 34.920 +0.392 0.157
-40.119.148.38 25.66.230.1 3 u 58 64 7 35.828 +0.902 0.596
-sesto4-ntp-002. .SHM. 1 u 58 64 7 8.913 +0.335 0.173
*ntp.netnod.se .PPS. 1 u 58 64 7 4.035 +0.398 0.161
-time-d-wwv.nist .NIST. 1 u 58 64 7 145.209 -6.830 0.159
associd=0 status=0x0618,
version="ntpd 4.2.8p15@1.3728-o Wed Sep 23 11:46:38 UTC 2020 (1)",
processor="x86_64", system="Linux/5.15.81-core_64_preempt", leap=0,
stratum=2, precision=-23, rootdelay=4.035, rootdisp=190.903,
refid=194.58.200.20, reftime=0xe83e9e8d.f230781a,
clock=0xe83e9f46.c0f46645, peer=47180, tc=6, mintc=3, offset=0.430138,
frequency=6.751, sys_jitter=0.188088, clk_jitter=0.145,
clk_wander=0.002, tai=37, leapsec=201701010000, expire=202306280000