Re: use of "build.sh -B BUILDID".... with patch and more questions

"Greg A. Woods" <[email protected]> Mon, 08 Dec 2025 17:58:47 -0800
Newsgroups gmane.os.netbsd.current,gmane.os.netbsd.devel.toolchain
Organization Planix, Inc.
Message-ID <[email protected]>
--pgp-sign-Multipart_Mon_Dec__8_17:58:35_2025-1
Content-Type: text/plain; charset=US-ASCII

At Mon, 08 Dec 2025 11:59:13 +0100 (CET), Jarle Greipsland <[email protected]> wrote:
Subject: Re: use of "build.sh -B BUILDID".... with patch and more questions
>
> As for the original problem of removing blanks (or whitespace), I
> generally prefer not to sprinkle my code with too much
> cleverness.  Instead, I stash it away in one or more functions,
> and then apply them as needed.  Clarity is worth a few extra
> function calls.  The functions below (beware! not rigorously
> tested) enable me to do both:
>
>   trim_ws var "  lost in space  "
> and
>   var="  lost in space  "
>   trim_ws var

nice!

I already noted the lack of character classes in the pdksh derivatives,
but also note for ancient sh, e.g. Heirloom Sh, one must resort to using
expr instead of the prefix/suffix pattern expansions.

--
					Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>

--pgp-sign-Multipart_Mon_Dec__8_17:58:35_2025-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Description: OpenPGP Digital Signature

-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCaTeCTgAKCRBmfXG3eL/0
f0ZCAKDhVeGVRoev7naewwTFuv4gkKdUMgCg12F8pMKTeetBnct85QOvEIWgF24=
=YNCj
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Mon_Dec__8_17:58:35_2025-1--