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


Groups > linux.debian.user > #268013

Re: bash parameter expansion "doesn't like" dots?

Path csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Albretch Mueller <lbrtchx@gmail.com>
Newsgroups linux.debian.user
Subject Re: bash parameter expansion "doesn't like" dots?
Date Mon, 04 Mar 2024 01:00:01 +0100
Message-ID <Ie3Ul-eeVB-3@gated-at.bofh.it> (permalink)
References <Ie3Ul-eeVB-5@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Sun Mar 3 23:59:16 2024
Old-Return-Path <lbrtchx@gmail.com>
X-Amavis-Spam-Status No, score=-3.995 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.599, HK_RANDOM_FROM=0.999, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, SARE_FROM_CONS6S=0.616, T_SCC_BODY_TEXT_LINE=-0.01, WORD_WITHOUT_VOWELS=1] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOJu0Yy8trjGszH0T3cSXD0+vAjLGagmuy/RxJpdj8kWFYhizrospte6 zACYdXfovU9yeOgiSI3GiWpQ8weG7HwYGVoxx/js4lJUpGUsW58KGEfO8Z4nZ6dO11V1vuqPaRR irzuVeUNwVDsdEOICA58+xzPzPGzW6t23
X-Google-SMTP-Source AGHT+IESC0MvXb9rAqVESLNKJG573ipSnGYyAcAdBH/l0Cnhg4tGVyxrS2L2gkVCpG1Et2ROJOzTUdV9cvITBRTeKgU=
X-Received by 2002:a05:6214:10e4:b0:690:64e6:33d5 with SMTP id q4-20020a05621410e400b0069064e633d5mr3935730qvt.54.1709510334153; Sun, 03 Mar 2024 15:58:54 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Mailing-List <debian-user@lists.debian.org> archive/latest/809934
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/CAFakBwgAkd05AgXcNhV=1UZEh5QdD82-CvAhEmRX8z-uSGbOkw@mail.gmail.com
Approved robomod@news.nic.it
Lines 15
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 3 Mar 2024 17:58:53 -0600
X-Original-Message-ID <CAFakBwgAkd05AgXcNhV=1UZEh5QdD82-CvAhEmRX8z-uSGbOkw@mail.gmail.com>
X-Original-References <CAFakBwiU5w0Q_DhPpg5qdu7KdtoKryiFo38PLnB_w=NcGjFEiQ@mail.gmail.com>
Xref csiph.com linux.debian.user:268013

Show key headers only | View raw


 bash doesn't seem to like dots too close to brackets:

 echo "${_VAR//[^0-9a-zA-Z.,_-]/}"

 works fine.

 lbrtchx

On 3/3/24, Albretch Mueller <lbrtchx@gmail.com> wrote:
> _VAR="admissions.piedmont.edu_files?trackid=wnm:1980&PDFfiller=what-is-the-second-fundamental-theorem-of-calculus(1).pdf"
>
> echo "${_VAR//[^a-zA-Z0-9_-]/}"
>
> echo "${_VAR//[^a-zA-Z0-9_-.]/}"
>

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: bash parameter expansion "doesn't like" dots? Albretch Mueller <lbrtchx@gmail.com> - 2024-03-04 01:00 +0100
  Re: bash parameter expansion "doesn't like" dots? David Wright <deblis@lionunicorn.co.uk> - 2024-03-04 02:10 +0100
    Re: bash parameter expansion "doesn't like" dots? John Crawley <john@bunsenlabs.org> - 2024-03-04 04:10 +0100
      Re: bash parameter expansion "doesn't like" dots? David Wright <deblis@lionunicorn.co.uk> - 2024-03-04 21:30 +0100
        Re: bash parameter expansion "doesn't like" dots? John Crawley <john@bunsenlabs.org> - 2024-03-05 03:00 +0100
          Re: bash parameter expansion "doesn't like" dots? Greg Wooledge <greg@wooledge.org> - 2024-03-05 03:10 +0100
            Re: bash parameter expansion "doesn't like" dots? John Crawley <john@bunsenlabs.org> - 2024-03-05 03:30 +0100
              Re: bash parameter expansion "doesn't like" dots? Greg Wooledge <greg@wooledge.org> - 2024-03-05 04:00 +0100
                Re: bash parameter expansion "doesn't like" dots? David <bouncingcats@gmail.com> - 2024-03-05 06:30 +0100
                Re: bash parameter expansion "doesn't like" dots? Max Nikulin <manikulin@gmail.com> - 2024-03-05 12:40 +0100
            Re: bash parameter expansion "doesn't like" dots? Max Nikulin <manikulin@gmail.com> - 2024-03-05 03:40 +0100
              Re: bash parameter expansion "doesn't like" dots? John Crawley <john@bunsenlabs.org> - 2024-03-05 04:00 +0100

csiph-web