tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: patch(1) max line length



Robert Elz wrote in
 <28937.1720777772%jacaranda.noi.kre.to@localhost>:
 |    Date:        Fri, 12 Jul 2024 08:15:57 +0000
 |    From:        Emmanuel Dreyfus <manu%netbsd.org@localhost>
 |    Message-ID:  <ZpDmPYpd366xt+Dt%homeworld.netbsd.org@localhost>
 |
 || I note the specification does not forbid the 
 || handling of lines longer than LINE_MAX characters.
 |
 |No, it certainly does not do that.
 |
 |However applications (at least if there's any attempt at portability
 |at all) shouldn't assume that will work.

It is your fault to think normal rules apply to JSON, for sure.
It is exceptional, see for example

  $ wc -lwc /var/tmp/steffen/.cache/.mupdf.history
      1    22 23240 /var/tmp/steffen/.cache/.mupdf.history

They all do not care no more.  (I remove this once in a while, it
would be even worse otherwise.)
You are assumed to use json_pp or something, ah, i think "jq".

Btw my MUA calls its on-program-exit also very late, even
documented so ("after terminal is torn down" or so).  I find it
much more natural to configure history during startup, when
case $- finds *i*|*m*.

 --End of <28937.1720777772%jacaranda.noi.kre.to@localhost>

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


Home | Main Index | Thread Index | Old Index