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

"Greg A. Woods" <[email protected]>
Newsgroups gmane.os.netbsd.current,gmane.os.netbsd.devel.toolchain
Organization Planix, Inc.
Message-ID <[email protected]>
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]>
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCaTeCTgAKCRBmfXG3eL/0
f0ZCAKDhVeGVRoev7naewwTFuv4gkKdUMgCg12F8pMKTeetBnct85QOvEIWgF24=
=YNCj
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.