Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > gnu.bash.bug > #16854

Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Koichi Murase <myoga.murase@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work
Date Sun, 30 Aug 2020 04:40:12 +0900
Lines 19
Approved bug-bash@gnu.org
Message-ID <mailman.1733.1598730029.2469.bug-bash@gnu.org> (permalink)
References <CAPyES363zNvUZHWo6imXOyC3UPU5FAbsyFGzWkcJMO-HBhT6gQ@mail.gmail.com> <CAFLRLk_k+J3-Nt9UJ4Fb8c-RewPnVjf_b=ShqGGASG0GmREAhg@mail.gmail.com> <CAPyES3685SjyZfrL+M_56wGqxvh=N9xNchWJ1xqMSrmmEJb9ww@mail.gmail.com> <CAMLQOtQtYxMiiP9=nN72AKC+hKTJ06rLxM7=Nt5LF1M47jvWrA@mail.gmail.com> <CAPyES36MM0OL2gDnaqfpywoyRwk29NWSXWTNFSCgA4a+jBfENQ@mail.gmail.com> <CAFLRLk8eb+PNzuGp_teBrEZC=U1oHMa66vFcch3pH=eEmt6+=Q@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1598730029 1711 209.51.188.17 (29 Aug 2020 19:40:29 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Bruce Lilly <bruce.lilly@gmail.com>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ygaO4U49OQjgBXp/0+vgihoBy1F6nMSQi1dIkrFwZHw=; b=IvDdOW2nTl7QpAwaLacvXQAh8/SKEhy+6vXsQMU7MeLWDZv5ou4eZ+g5YQveBH2Zze zupkHe646uU3bvBkEoXF9e6lRn8xEpCuOqEJQDZapKQc9AjBe42Ol8+YXf9v7KusOXTV bzeJYeaU0lZX0Jl/3nWR8ry1OC2qRFwSKJnTfrJD1vCT2eatzchReREcPGrASWMqFvRu cVJhuqizMqHB6i2+ZxTpPGiG5uDlkzfafZ1HpPuyNnbkCZNWTZCfsuqgm8n2+FYda4VP Jtu5V3ACctwprMtiuHIrxLtNfquRanCb4yTgVGmpwpnjxNn1C4sVfAgFnArGr4UJgOf8 U5sQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ygaO4U49OQjgBXp/0+vgihoBy1F6nMSQi1dIkrFwZHw=; b=XJk5fmW4fjrSqzrbPVTukcM8jNUXTHcZLyqDb02oY+jrGMAObN5V/p1nwGhC3eMpoD zxeO1tHIjOeAqEXTQpD/gbMGgAZFEMfZZSx2URKslgN6HrnuFBE58g2v5oe1V26xpvCo kqAkUPIO0bmI1KCsqvnFI3eU+G/olZfivWlPVGIK2B+putalwAfsw3/uUe2Zh9PKdgAY HnSNGa/d6zXX2r0tp2d8ltED28guie3F6r4ZYjr+UK8s6gJAAFLRHyequGkiKr+hxntS eHH4myLbf9kxeIgVOUwgYT3RdAKYaMF63hNa2KECJ5T906JcOLEQETIp0cxTgsyz405d ZYPA==
X-Gm-Message-State AOAM531dxg1O9qdYGv2g6owso8h19w3EaiR1pAguxyuFR+aJfh+8kIzZ 7+khgFY7ypbxnNvzm0Tapr4AWtCAoQy3eS8H30w=
X-Google-Smtp-Source ABdhPJx2CJmZQRR+94Rwm3QbC5/+GjDKI50MjXD0SYbbuMcHxkTpHQX94r/0Fg6YF0tV0VnFGhAbn3pUT1ifbqxRYIg=
X-Received by 2002:a17:906:3506:: with SMTP id r6mr4797165eja.55.1598730024690; Sat, 29 Aug 2020 12:40:24 -0700 (PDT)
In-Reply-To <CAPyES36MM0OL2gDnaqfpywoyRwk29NWSXWTNFSCgA4a+jBfENQ@mail.gmail.com>
Received-SPF pass client-ip=2a00:1450:4864:20::62f; envelope-from=myoga.murase@gmail.com; helo=mail-ej1-x62f.google.com
X-detected-operating-system by eggs.gnu.org: No matching host in p0f cache. That's all we know.
X-Spam_score_int -20
X-Spam_score -2.1
X-Spam_bar --
X-Spam_report (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAFLRLk8eb+PNzuGp_teBrEZC=U1oHMa66vFcch3pH=eEmt6+=Q@mail.gmail.com>
X-Mailman-Original-References <CAPyES363zNvUZHWo6imXOyC3UPU5FAbsyFGzWkcJMO-HBhT6gQ@mail.gmail.com> <CAFLRLk_k+J3-Nt9UJ4Fb8c-RewPnVjf_b=ShqGGASG0GmREAhg@mail.gmail.com> <CAPyES3685SjyZfrL+M_56wGqxvh=N9xNchWJ1xqMSrmmEJb9ww@mail.gmail.com> <CAMLQOtQtYxMiiP9=nN72AKC+hKTJ06rLxM7=Nt5LF1M47jvWrA@mail.gmail.com> <CAPyES36MM0OL2gDnaqfpywoyRwk29NWSXWTNFSCgA4a+jBfENQ@mail.gmail.com>
Xref csiph.com gnu.bash.bug:16854

Show key headers only | View raw


2020-08-30 4:25 Bruce Lilly <bruce.lilly@gmail.com>:
> Unfortunately, because bash is GPL, I can't post the copyrighted
> script which is covered by a non-GPL license.

Don't worry.  In this case, the GPL doesn't apply.  Please read the
following Q&A.

https://www.gnu.org/licenses/gpl-faq.en.html#IfInterpreterIsGPL

Even if your original `shellbug' is licensed under something other,
and it prohibits to make it public, you can still create another
script to reproduce the same issue.  Actually, it is considered to be
better practice in reporting bugs to create ``a reduced test case''
which is a minimal script that reproduces the problem rather than
sending the original script.

--
Koichi

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work Koichi Murase <myoga.murase@gmail.com> - 2020-08-30 04:40 +0900

csiph-web