Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15382
| Path | csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Ilkka Virta <itvirta@iki.fi> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Incorrect example for `[[` command. |
| Date | Fri, 20 Sep 2019 16:30:17 +0300 |
| Lines | 24 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.606.1568986234.2190.bug-bash@gnu.org> (permalink) |
| References | <CAD0rTC7W20s7-8np7Z+CmZQczTQ+LX=Y1x01gAenewrpiJS5jw@mail.gmail.com> <20190920124827.GP28751@eeg.ccf.org> <70f5667e-d91e-a4cf-fef0-b72c7d61a29a@iki.fi> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | usenet.stanford.edu 1568986235 21754 209.51.188.17 (20 Sep 2019 13:30:35 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
| In-Reply-To | <20190920124827.GP28751@eeg.ccf.org> |
| Content-Language | en-US |
| X-SASI-RCODE | 200 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; h=subject:to:references:from:message-id:date:mime-version:in-reply-to:content-type:content-transfer-encoding; s=smtp; bh=6HAwsgahMZkTM47RKeXOopOg7EVeaIC1NE5YxYBImdo=; b=PHuL3V26khmf1aQRCKDxb/husppsG+Qs8idVKgsVTFomoj+/8lgQZdFQ0M5r8614c/m6sh5rh6b7m6LLxyvByCk7wLie2OlsCKyC0rApVWJ35ePTd5jG3E+7tn4eUi9tWSvXaPwoH3Ws+U6NJ02lDhOLyD/QN4jXVco3aqwgNpX9ZzYm4+OLk8xWyQfSEXzpU+MA7TxfLphOCFtsms7zXr+ZFr0QTRKmiaRe+YqDb9rJB24OE81jKJeGOmKIIJ1PEQHon/96myhZBixGWquyaq9+n11gsBQ+e3X+/+EJd6bZqU+isvyGe5Zorg7vRK/zKO7+ofwtNbnjoY+K3WFpLA== |
| X-detected-operating-system | by eggs.gnu.org: FreeBSD 8.x |
| X-Received-From | 157.24.2.213 |
| 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 | <70f5667e-d91e-a4cf-fef0-b72c7d61a29a@iki.fi> |
| X-Mailman-Original-References | <CAD0rTC7W20s7-8np7Z+CmZQczTQ+LX=Y1x01gAenewrpiJS5jw@mail.gmail.com> <20190920124827.GP28751@eeg.ccf.org> |
| Xref | csiph.com gnu.bash.bug:15382 |
Show key headers only | View raw
On 20.9. 15:48, Greg Wooledge wrote: > but after the regex-glob-thing, it says: > > That means values like ‘aab’ and ‘ aaaaaab’ will match > > So there's a shift in intent between a? and a+ in what's supposed to be > a regular expression. Although of course the sentence is *literally* > true because the regex would be unanchored, and therefore it's sufficient > to match only the 'ab', and the rest of the input doesn't matter. > But that's just confusing, and doesn't belong in this kind of document. It goes on to say "as will a line containing a 'b' anywhere in its value", so the text does recognize the zero-width-matching parts don't affect what matches. (I suppose they would affect what goes to BASH_REMATCH[0], but the text doesn't mention that.) I think it would be a better example with the anchored version also presented for comparison. -- Ilkka Virta / itvirta@iki.fi
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Incorrect example for `[[` command. Ilkka Virta <itvirta@iki.fi> - 2019-09-20 16:30 +0300
csiph-web