Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15380
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | hk <hkadeveloper@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Incorrect example for `[[` command. |
| Date | Fri, 20 Sep 2019 13:40:00 +0800 |
| Lines | 27 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.590.1568982278.2190.bug-bash@gnu.org> (permalink) |
| References | <CAD0rTC7W20s7-8np7Z+CmZQczTQ+LX=Y1x01gAenewrpiJS5jw@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 1568982278 18229 209.51.188.17 (20 Sep 2019 12:24:38 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tvWP+Cs7dUFZmTSWpTNfmNDwD/l0LcAEfdVlBR9zTWw=; b=p9L3mB9ANiHTYg4597MbTfAwZnKvmMKUXc49Bjell73AQoGwb9yYdG5fNjj+yYb/w9 wwumR6ql+4DCyPuedpo3j3vfpEuzPwFgkMm33/ypwQbcPmq0iw5cfvPKOu5q+3rBdQbB 8kSiZ4kmeHz8aOHqvCEc2CNTj8VyIFqi+4BrVj3P3N9OsTU6vcMmy75Mm2vsH68qBTv3 bXeXjL87wS5/ZXALMPOGFNETBzyOJTOsvUd5wZ5MUd7BykS1pIxRQmnRkJ+BnQOESOEp p3p1EAUJf4QCkn4DUPlQqosihd3/lRPHgE2C5K1MM9DmxcnL1ZPi2gt+WmKcCiUREAXQ 7dKg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tvWP+Cs7dUFZmTSWpTNfmNDwD/l0LcAEfdVlBR9zTWw=; b=HRJVEHQHiT6D/K2Z0jHX984lKqhO+nWUG4WjWnAdQo8/RuMMW81nkOCiaZvec7okBZ 6yY/W3j/i3iIhnyn7DtFMWRZEpHAWj+NJCuRlsP2zgUjyKICRggKHrX95s7NdbGazXob DW7kLWRnWGgZZhTdwFdBVsiUYZYj/JjuV2o7i3ll5iqEJyxvsG2QvtAnIuZaJrrZ1DP7 bprDg5eXG8gT5kc0AYHFom0+1uqBZ1UtA4LciBf83bAfU3tNwQc8r6u9WH4CQKGs4YIR 8io52ZeCAzFYAuSaP3UCMfTFgP1dFyPKLmtToVIkqECHEm3hjwmUONkDqw0YJMd+YiUc 8RBA== |
| X-Gm-Message-State | APjAAAXbhxW7eFGiVM3ErS9AWDFUXzYC+HHPQASvQAIeChazIXoVmHd1 3J0xlgq/3u0mzl3tgrVHi8gIfp0p5KCr56s1Jq64Ji+0 |
| X-Google-Smtp-Source | APXvYqyi/xgbvdqHlVEdR4jOLrPaDCsr1ouRQEsoXbcbp6Xjm2NRupSraSU4sidDjZ7JNaUwWx+IEJhLqZOkzT4BwEI= |
| X-Received | by 2002:a37:a4d:: with SMTP id 74mr1940296qkk.90.1568958011100; Thu, 19 Sep 2019 22:40:11 -0700 (PDT) |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2607:f8b0:4864:20::742 |
| X-Mailman-Approved-At | Fri, 20 Sep 2019 08:24:34 -0400 |
| 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 | <CAD0rTC7W20s7-8np7Z+CmZQczTQ+LX=Y1x01gAenewrpiJS5jw@mail.gmail.com> |
| Xref | csiph.com gnu.bash.bug:15380 |
Show key headers only | View raw
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux hk 4.15.0-62-generic #69-Ubuntu SMP Wed Sep 4 20:55:53
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.0
Patch Level: 0
Release Status: release
Description:
On section 3.2.4.2 of Bash Reference Manual, the example on*
[[...]]* (page 13 in the PDF) is incorrect. Specifically, the example say *[[
$line =~ [[:space:]]*?(a)b ]]* will match values like *'aab'* and*
'aaaaaab*'. But it won't. The operator is* =~*, but the operand on the
right side is a pattern while it should be a regular expression.
Repeat-By:
[Describe the sequence of events that causes the problem
to occur.]
Fix:
[Description of how to fix the problem. If you don't know a
fix for the problem, don't include this section.]
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Incorrect example for `[[` command. hk <hkadeveloper@gmail.com> - 2019-09-20 13:40 +0800
csiph-web