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

Re: debootstrap InRelease file support

On Fri, Sep 16, 2016 at 14:56:00 -0400, Lennart Sorensen wrote:

> A bit of a hack but I believe posix compliant would be:
> sed '1,/^$/d;/^-----BEGIN PGP SIGNATURE-----$/,$d' < "$inreldest" | tr '\n' '\a' | sed 's/\a$//' | tr '\a' '\n' > "$reldest"
> So simply replace all newlines with bells, then delete the last bell
> and then convert the bells back to newlines.  I sure can't imagine the
> Release file contains any bell characters.  Could use escape instead
> if prefered.
> Pretty awful compared to the head -c -1 option, but maybe not that bad.
Thanks, that looks like it should work :)


Reply to: