Current-Users archive

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

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



At Mon, 08 Dec 2025 11:59:13 +0100 (CET), Jarle Greipsland <jarle.greipsland%norid.no@localhost> 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 <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgp_vqALpPTIK.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index