netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bad escapes in ip -online
@ 2017-09-07 16:08 John Kodis
  2017-09-07 16:56 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: John Kodis @ 2017-09-07 16:08 UTC (permalink / raw)
  To: netdev

The -online option to the 'ip link', 'ip addr', and perhaps others is 
putting out a backslash in places where a newline character should go, 
as so:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode 
DEFAULT group default qlen 1000\    link/loopback 00:00:00:00:00:00 brd 
00:00:00:00:00:00

-- John.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bad escapes in ip -online
  2017-09-07 16:08 Bad escapes in ip -online John Kodis
@ 2017-09-07 16:56 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2017-09-07 16:56 UTC (permalink / raw)
  To: John Kodis; +Cc: netdev

On Thu, 7 Sep 2017 12:08:56 -0400
John Kodis <john.m.kodis@nasa.gov> wrote:

> The -online option to the 'ip link', 'ip addr', and perhaps others is 
> putting out a backslash in places where a newline character should go, 
> as so:
> 
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode 
> DEFAULT group default qlen 1000\    link/loopback 00:00:00:00:00:00 brd 
> 00:00:00:00:00:00
> 
> -- John.
> 

The backslash is the virtual line separator in the one line format.
It is has always been that way, and programs parse the oneline output.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-07 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-07 16:08 Bad escapes in ip -online John Kodis
2017-09-07 16:56 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).