ss outputs lots of trailing spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iproute2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ ss -atn | head -n 5 | tr ' ' '_'
State__
LISTEN_
LISTEN_
LISTEN_
LISTEN_
These trailing spaces cause problems when piping ss output through grep or anything else unless the terminal window is very wide. The spaces are present even when stdout is a terminal, indeed if I maximize my terminal window (its width becomes a very reasonable 172 characters) and run ss without arguments, the output is interleaved with blank lines. env -i changes nothing.
The spaces should be trimmed before output regardless of whether stdout is a terminal.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: iproute2 5.5.0-1ubuntu1
ProcVersionSign
Uname: Linux 5.4.0-37-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Wed Jul 22 14:05:53 2020
SourcePackage: iproute2
UpgradeStatus: Upgraded to focal on 2020-04-26 (86 days ago)