Download raw body.
regress/tog: enable in sha256 mode
Christian Weisgerber <naddy@mips.inka.de> wrote:
> Stefan Sperling:
> 
> > > +trim()
> > > +{
> > > +	expr "$2" : "\(.\{$1\}\)"
> > > +}
> > 
> > Seems this returns an empty string if the input is shorter than
> > the requested trim amount.
> 
> That can easily be changed by specifying a lower bound:
> 
> 	expr "$2" : "\(.\{1,$1\}\)"
oh nice!
I was just tweaking the tests to work with both hash algos and it's
more fiddly then I anticipated.
I think op's tweak with your fix is the best way to go. Thanks :)
op, your diff with naddy's fix is ok for me
-- 
Mark Jamsek <https://bsdbox.org>
GPG: F2FF 13DE 6A06 C471 CA80  E6E2 2930 DC66 86EE CF68
regress/tog: enable in sha256 mode