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


Groups > gnu.bash.bug > #15409 > unrolled thread

Re: Regular Expression matching operation =~

Started byChet Ramey <chet.ramey@case.edu>
First post2019-09-23 09:21 -0400
Last post2019-09-23 17:14 +0000
Articles 2 — 2 participants

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.


Contents

  Re: Regular Expression matching operation =~ Chet Ramey <chet.ramey@case.edu> - 2019-09-23 09:21 -0400
    Re: Regular Expression matching operation =~ Allodoxaphobia <trepidation@example.net> - 2019-09-23 17:14 +0000

#15409 — Re: Regular Expression matching operation =~

FromChet Ramey <chet.ramey@case.edu>
Date2019-09-23 09:21 -0400
SubjectRe: Regular Expression matching operation =~
Message-ID<mailman.870.1569244925.2190.bug-bash@gnu.org>
On 9/22/19 5:44 PM, Allodoxaphobia wrote:
> In moving a bash ver. 4.3.48 (Ubuntu) program to a bash ver. 5.0.11 
> (FreeBSD) environment I encountered either a bug, a quirk, or 
> an undocumented feature.

It's not exactly undocumented, more undefined. You can't count on the
NUL character or the empty string doing anything in particular.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [next] | [standalone]


#15416

FromAllodoxaphobia <trepidation@example.net>
Date2019-09-23 17:14 +0000
Message-ID<mailman.911.1569258898.2190.bug-bash@gnu.org>
In reply to#15409
On Mon, 23 Sep 2019 09:21:44 -0400, Chet Ramey wrote:
> On 9/22/19 5:44 PM, Allodoxaphobia wrote:
>
>> In moving a bash ver. 4.3.48 (Ubuntu) program to a bash ver. 5.0.11
>> (FreeBSD) environment I encountered either a bug, a quirk, or
>> an undocumented feature.
>
> It's not exactly undocumented, more undefined. You can't count on 
> the NUL character or the empty string doing anything in particular.

Thanks.  The "undocumented" action made it so much easier
for some coding logic in my linux/Ubuntu environement. :-)

Thanks, also, to Grisha Levit for more details about the "why".

Regards,
Jonesy
--
  Marvin L Jones    | Marvin      | W3DHJ.net  | linux
   38.238N 104.547W |  @ jonz.net | Jonesy     |  FreeBSD
    * Killfiling google & XXXXbanter.com: jonz.net/ng.htm

[toc] | [prev] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web