Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16850
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Ilkka Virta <itvirta@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 | Sat, 29 Aug 2020 22:22:41 +0300 |
| Lines | 13 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1728.1598728978.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> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| X-Trace | usenet.stanford.edu 1598728978 1272 209.51.188.17 (29 Aug 2020 19:22:58 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | Koichi Murase <myoga.murase@gmail.com>, 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=BMi89oTdz8segDZHsGbl2NYimBbMY/kUiXstSUXjUFI=; b=ffDfKLQbCcEbY81OnwOdQtfahYYTTW/3LinqJNE6OKvaZTiP7JccN1o42jCB+8UFJX OdSgH6fUvjU0G/iEeszvKYiXIjI6mRAT9KJK0xf8CZwtS9dcYrFwCXlcfuySX+RF2Kbz ufehA9aK518de5srfSSx35AmBVGkPT/Ku6/cLlqtea5JYh/3NzceXp19xvjEAUE9pdND 3YR1MgUAYmIxwkBbDLvQUnNSlaQ/KAGWtPVAmS/Lcfnv9NVH9lXuJ/c4wcw6wEnPuA+a +7bShVv7GUGR/VBunZPdjoWNqf8Rye3t12OEWeV9eG3oIC9cu3DlEMYY2AVq0gtuVk88 Rctg== |
| 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=BMi89oTdz8segDZHsGbl2NYimBbMY/kUiXstSUXjUFI=; b=cReJ8ilzV18F1/wOLH+56vEVabMJVyRAOPYVOWWU7nUcy8r5kZ5aI5znESUy92E+O0 h7WDTtWHhXBUq3xSz6LtkS8TyuSFMpT6PRMFAoqe0UTvHjnYEi8XUdbzyaxg5q9uicG3 pO3x1PfnOpxfWPq7JCHOGBYk+uYhqM0ehiiAXuIObH2+ue1CXbDs2jdxCY50U8LqxE8g G0+UP1rwNjk249Gc83GEz1sSOLygDJ4TjbI6iU7NRajDfdsl7762eNuuhwjFRa/XPIu4 DEl/ljI7fCUFMJunTxDkBYMjKuQDqj1UoUeD7Q/EyTFsiU9LgcZHUfl4EPEBDJvG71JC nw0A== |
| X-Gm-Message-State | AOAM533otOLhBdZS0slNND65Pv134uk1IK7Iovcw3nz77WlqEQSFwrtL ZHMZisHbrtHKmX44KXj8uGHhizdjRSLnGA+i2ts= |
| X-Google-Smtp-Source | ABdhPJxOFIYL+13q63vX+MzA3TetwEnC9i91WPIxytKyIXFZmArVwzlrixkhWHyxJ45RDiTPSpttgRJwa5sVIqjGZDc= |
| X-Received | by 2002:a05:651c:219:: with SMTP id y25mr1216342ljn.314.1598728972462; Sat, 29 Aug 2020 12:22:52 -0700 (PDT) |
| In-Reply-To | <CAPyES3685SjyZfrL+M_56wGqxvh=N9xNchWJ1xqMSrmmEJb9ww@mail.gmail.com> |
| Received-SPF | pass client-ip=2a00:1450:4864:20::22d; envelope-from=itvirta@gmail.com; helo=mail-lj1-x22d.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, HTML_MESSAGE=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-Content-Filtered-By | Mailman/MimeDel 2.1.23 |
| 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 | <CAMLQOtQtYxMiiP9=nN72AKC+hKTJ06rLxM7=Nt5LF1M47jvWrA@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> |
| Xref | csiph.com gnu.bash.bug:16850 |
Show key headers only | View raw
On Sat, Aug 29, 2020 at 9:56 PM Bruce Lilly <bruce.lilly@gmail.com> wrote: > Please don't assume that something output by printf (without quoting) for > clarity is representative of actual expansion by the shell when properly > quoted. > If you don't want people to assume (and you shouldn't, if you want them to help you), you'd better post the actual script you use, and not just something output by printf. Without that, it's impossible to check what quoting you used, or to reproduce the issue.
Back to gnu.bash.bug | Previous | Next | Find similar
Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work Ilkka Virta <itvirta@gmail.com> - 2020-08-29 22:22 +0300
csiph-web