Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15382 > unrolled thread
| Started by | Ilkka Virta <itvirta@iki.fi> |
|---|---|
| First post | 2019-09-20 16:30 +0300 |
| Last post | 2019-09-20 16:30 +0300 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Incorrect example for `[[` command. Ilkka Virta <itvirta@iki.fi> - 2019-09-20 16:30 +0300
| From | Ilkka Virta <itvirta@iki.fi> |
|---|---|
| Date | 2019-09-20 16:30 +0300 |
| Subject | Re: Incorrect example for `[[` command. |
| Message-ID | <mailman.606.1568986234.2190.bug-bash@gnu.org> |
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 top | Article view | gnu.bash.bug
csiph-web