Discussion:
[9fans] sed line length limit
(too old to reply)
dexen deVries
2012-05-25 07:49:56 UTC
Permalink
hi list,


it seems p9p sed has line lenght limit at about 1024 bytes.
however, instead of crashing and burning, or returning some error, it just
happily spews truncated output.


i've just been bitten by it :D
--
dexen deVries

[[[↓][→]]]

Weightless and alone
you speed through the eerie nothingness of space
you circle 'round the Moon
and journey back
to face the punishing torment of re-entry

-- LUNA-C, ``Supaset8 (full release)'', #24m52s
erik quanstrom
2012-05-25 12:11:23 UTC
Permalink
Post by dexen deVries
hi list,
it seems p9p sed has line lenght limit at about 1024 bytes.
however, instead of crashing and burning, or returning some error, it just
happily spews truncated output.
please see /n/sources/contrib/quanstro/sed.c. i think i've taken
care of all these cases. there is at least diagnostic output.
i was somewhat concerned about breaking things, so i didn't
let toolong() sysfatal, but that's an easy mod.

- erik

Continue reading on narkive:
Loading...