9front - general discussion about 9front
 help / color / mirror / Atom feed
* graph(1) input handling
@ 2016-06-10 22:31 BurnZeZ
  0 siblings, 0 replies; only message in thread
From: BurnZeZ @ 2016-06-10 22:31 UTC (permalink / raw)
  To: 9front


>           Graph with no options takes pairs of numbers from the stan-
>           dard input as abscissas (x-values) and ordinates (y-values)
>           of a graph.  Successive points are connected by straight
>           lines.  The graph is encoded on the standard output for dis-
>           play by plot(1) filters.

Yeah, that sounds fine.


>           If an ordinate is followed by a nonnumeric string, that
>           string is printed as a label beginning on the point.  Labels
>           may be surrounded with quotes " " in which case they may be
>           empty or contain blanks and numbers; labels never contain
>           newlines.

Okay, so newlines can't be used inside labels, but you can can
surround labels with quotes to preserve spaces.

Why doesn't it just take newline-delimited input?  Newlines are
already disallowed in labels, so why not use them as delimiters?  Then
the rest of the line can be assumed to be the label.

Are there historical reasons for the way it's done?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-10 22:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10 22:31 graph(1) input handling BurnZeZ

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).