public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* Issue in man page regex.7
@ 2023-11-01 14:02 Helge Kreutzmann
  2023-11-01 16:54 ` Alejandro Colomar
  0 siblings, 1 reply; 6+ messages in thread
From: Helge Kreutzmann @ 2023-11-01 14:02 UTC (permalink / raw)
  To: alx.manpages; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    I<egrep> → B<egrep>(1)

"Regular expressions (\"RE\"s), as defined in POSIX.2, come in two forms: "
"modern REs (roughly those of I<egrep>; POSIX.2 calls these \"extended\" "
"REs)  and obsolete REs (roughly those of B<ed>(1); POSIX.2 \"basic\" REs).  "
"Obsolete REs mostly exist for backward compatibility in some old programs; "
"they will be discussed at the end.  POSIX.2 leaves some aspects of RE syntax "
"and semantics open; \"\\*(dg\" marks decisions on these aspects that may not "
"be fully portable to other POSIX.2 implementations."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Issue in man page regex.7
@ 2023-11-01 14:02 Helge Kreutzmann
  2023-11-01 16:46 ` Alejandro Colomar
  0 siblings, 1 reply; 6+ messages in thread
From: Helge Kreutzmann @ 2023-11-01 14:02 UTC (permalink / raw)
  To: alx.manpages; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue 1:  alphabetic?
Issue 2:  multiple cases → both cases?

"If case-independent matching is specified, the effect is much as if all case "
"distinctions had vanished from the alphabet.  When an alphabetic that exists "
"in multiple cases appears as an ordinary character outside a bracket "
"expression, it is effectively transformed into a bracket expression "
"containing both cases, for example, \\[aq]x\\[aq] becomes \"I<[xX]>\".  When "
"it appears inside a bracket expression, all case counterparts of it are "
"added to the bracket expression, so that, for example, \"I<[x]>\" becomes "
"\"I<[xX]>\" and \"I<[\\[ha]x]>\" becomes \"I<[\\[ha]xX]>\"."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Issue in man page regex.7
  2023-11-01 14:02 Helge Kreutzmann
@ 2023-11-01 16:46 ` Alejandro Colomar
  0 siblings, 0 replies; 6+ messages in thread
From: Alejandro Colomar @ 2023-11-01 16:46 UTC (permalink / raw)
  To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man

[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]

Hi Helge,

On Wed, Nov 01, 2023 at 02:02:12PM +0000, Helge Kreutzmann wrote:
> Without further ado, the following was found:
> 
> Issue 1:  alphabetic?
> Issue 2:  multiple cases → both cases?

Depending on the locale, more than 2 are possible, AFAIK, so multiple
would be more accurate in that context, I think.

Cheers,
Alex

> 
> "If case-independent matching is specified, the effect is much as if all case "
> "distinctions had vanished from the alphabet.  When an alphabetic that exists "
> "in multiple cases appears as an ordinary character outside a bracket "
> "expression, it is effectively transformed into a bracket expression "
> "containing both cases, for example, \\[aq]x\\[aq] becomes \"I<[xX]>\".  When "
> "it appears inside a bracket expression, all case counterparts of it are "
> "added to the bracket expression, so that, for example, \"I<[x]>\" becomes "
> "\"I<[xX]>\" and \"I<[\\[ha]x]>\" becomes \"I<[\\[ha]xX]>\"."

-- 
<https://www.alejandro-colomar.es/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Issue in man page regex.7
  2023-11-01 14:02 Issue in man page regex.7 Helge Kreutzmann
@ 2023-11-01 16:54 ` Alejandro Colomar
  0 siblings, 0 replies; 6+ messages in thread
From: Alejandro Colomar @ 2023-11-01 16:54 UTC (permalink / raw)
  To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man

[-- Attachment #1: Type: text/plain, Size: 914 bytes --]

On Wed, Nov 01, 2023 at 02:02:12PM +0000, Helge Kreutzmann wrote:
> Without further ado, the following was found:
> 
> Issue:    I<egrep> → B<egrep>(1)

Fixed:
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=f43a9ed0f80c18ca8a033883d726bfa78fa5c7d6>

Thanks,
Alex

> 
> "Regular expressions (\"RE\"s), as defined in POSIX.2, come in two forms: "
> "modern REs (roughly those of I<egrep>; POSIX.2 calls these \"extended\" "
> "REs)  and obsolete REs (roughly those of B<ed>(1); POSIX.2 \"basic\" REs).  "
> "Obsolete REs mostly exist for backward compatibility in some old programs; "
> "they will be discussed at the end.  POSIX.2 leaves some aspects of RE syntax "
> "and semantics open; \"\\*(dg\" marks decisions on these aspects that may not "
> "be fully portable to other POSIX.2 implementations."

-- 
<https://www.alejandro-colomar.es/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Issue in man page regex.7
@ 2024-11-17 10:46 Helge Kreutzmann
  2024-11-17 11:28 ` Alejandro Colomar
  0 siblings, 1 reply; 6+ messages in thread
From: Helge Kreutzmann @ 2024-11-17 10:46 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    alphabetic? Do you mean alphabet?

"If case-independent matching is specified, the effect is much as if all case "
"distinctions had vanished from the alphabet.  When an alphabetic that exists "
"in multiple cases appears as an ordinary character outside a bracket "
"expression, it is effectively transformed into a bracket expression "
"containing both cases, for example, \\[aq]x\\[aq] becomes \"I<[xX]>\".  When "
"it appears inside a bracket expression, all case counterparts of it are "
"added to the bracket expression, so that, for example, \"I<[x]>\" becomes "
"\"I<[xX]>\" and \"I<[\\[ha]x]>\" becomes \"I<[\\[ha]xX]>\"."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Issue in man page regex.7
  2024-11-17 10:46 Helge Kreutzmann
@ 2024-11-17 11:28 ` Alejandro Colomar
  0 siblings, 0 replies; 6+ messages in thread
From: Alejandro Colomar @ 2024-11-17 11:28 UTC (permalink / raw)
  To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man

[-- Attachment #1: Type: text/plain, Size: 968 bytes --]

Hi Helge,

On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote:
> Without further ado, the following was found:
> 
> Issue:    alphabetic? Do you mean alphabet?

No, it means "alphabetic character", but character was omitted.  As in,
anything that isalpha(c).

Cheers,
Alex

> 
> "If case-independent matching is specified, the effect is much as if all case "
> "distinctions had vanished from the alphabet.  When an alphabetic that exists "
> "in multiple cases appears as an ordinary character outside a bracket "
> "expression, it is effectively transformed into a bracket expression "
> "containing both cases, for example, \\[aq]x\\[aq] becomes \"I<[xX]>\".  When "
> "it appears inside a bracket expression, all case counterparts of it are "
> "added to the bracket expression, so that, for example, \"I<[x]>\" becomes "
> "\"I<[xX]>\" and \"I<[\\[ha]x]>\" becomes \"I<[\\[ha]xX]>\"."

-- 
<https://www.alejandro-colomar.es/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-17 11:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 14:02 Issue in man page regex.7 Helge Kreutzmann
2023-11-01 16:54 ` Alejandro Colomar
  -- strict thread matches above, loose matches on Subject: below --
2024-11-17 10:46 Helge Kreutzmann
2024-11-17 11:28 ` Alejandro Colomar
2023-11-01 14:02 Helge Kreutzmann
2023-11-01 16:46 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox