Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.tech.toolchain > #3582

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

From "Greg A. Woods" <woods@planix.ca>
Newsgroups muc.lists.netbsd.tech.toolchain
Subject Re: use of "build.sh -B BUILDID".... with patch and more questions
Date 2025-12-08 17:58 -0800
Organization Planix, Inc.
Message-ID <m1vSn03-00Mo5fC@more.local> (permalink)
References <> <20251208.115913.489340727447464514.jarle@norid.no>

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

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

Back to muc.lists.netbsd.tech.toolchain | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: use of "build.sh -B BUILDID"....  with patch and more questions "Greg A. Woods" <woods@planix.ca> - 2025-11-30 17:46 -0800
  Re: use of "build.sh -B BUILDID"....  with patch and more questions "Greg A. Woods" <woods@planix.ca> - 2025-12-03 10:50 -0800
    Re: use of "build.sh -B BUILDID"....  with patch and more questions "Greg A. Woods" <woods@planix.ca> - 2025-12-04 14:45 -0800
      Re: use of "build.sh -B BUILDID".... with patch and more questions Robert Elz <kre@munnari.OZ.AU> - 2025-12-05 08:51 +0700
        Re: use of "build.sh -B BUILDID".... with patch and more questions "Greg A. Woods" <woods@planix.ca> - 2025-12-04 22:37 -0800
          Re: use of "build.sh -B BUILDID".... with patch and more questions "Greg A. Woods" <woods@planix.ca> - 2025-12-04 22:49 -0800
        Re: use of "build.sh -B BUILDID".... with patch and more questions Jarle Greipsland <jarle.greipsland@norid.no> - 2025-12-05 09:33 +0100
          Re: use of "build.sh -B BUILDID".... with patch and more questions RVP <rvp@SDF.ORG> - 2025-12-08 06:51 +0000
            Re: use of "build.sh -B BUILDID".... with patch and more questions "Greg A. Woods" <woods@planix.ca> - 2025-12-08 01:12 -0800
            Re: use of "build.sh -B BUILDID".... with patch and more questions Jarle Greipsland <jarle.greipsland@norid.no> - 2025-12-08 11:59 +0100
              Re: use of "build.sh -B BUILDID".... with patch and more questions "Greg A. Woods" <woods@planix.ca> - 2025-12-08 17:58 -0800
                Re: use of "build.sh -B BUILDID".... with patch and more questions Jarle Greipsland <jarle.greipsland@norid.no> - 2025-12-09 11:14 +0100

csiph-web