|Anonymous | Login||2022-09-25 08:12 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001552||[1003.1(2016/18)/Issue7+TC2] Shell and Utilities||Editorial||Enhancement Request||2022-01-14 23:55||2022-01-18 00:34|
|Name||Christoph Anton Mitterer|
|Section||2.13.1 Patterns Matching a Single Character|
|Final Accepted Text|
|Summary||0001552: minor improvement in the description of […] in pattern matching notation|
Right now the text says:
"If an open bracket introduces a bracket expression as in XBD RE Bracket Expression, except that the <exclamation-mark> character ( '!' ) shall replace the <circumflex> character ( '^' ) in its role in a non-matching list in the regular expression notation, it shall introduce a pattern bracket expression. A bracket expression starting with an unquoted <circumflex> character produces unspecified results. Otherwise, '[' shall match the character itself."
I would propose to swap the last two sentences, i.e. first:
"Otherwise, '[' shall match the character itself."
"A bracket expression starting with an unquoted <circumflex> character produces unspecified results."
Otherwise the meaning could be interpreted, that a [ would match itself, if the bracket expression was not starting with an unquoted ^ .
Whereas that sentence rather relates to the 1st sentence, i.e. "If an open bracket introduces a bracket expression..."
and ONLY if it does NOT result into a bracket expression, it (the [ ) shall be taken literally.
|Tags||No tags attached.|
|This problem has already been fixed by bug 0000985. This bug should be closed as a dup of 985.|
|Formulation there seems fine and solve the issue from here as well. So I agree that this should be closed.|
Don Cragun (manager)
|Closed as requested by submitter.|
|2022-01-14 23:55||calestyo||New Issue|
|2022-01-14 23:55||calestyo||Name||=> Christoph Anton Mitterer|
|2022-01-14 23:55||calestyo||Section||=> 2.13.1 Patterns Matching a Single Character|
|2022-01-14 23:55||calestyo||Page Number||=> -|
|2022-01-14 23:55||calestyo||Line Number||=> -|
|2022-01-17 10:33||geoffclare||Note Added: 0005615|
|2022-01-17 10:34||geoffclare||Relationship added||duplicate of 0000985|
|2022-01-17 18:49||calestyo||Note Added: 0005619|
|2022-01-18 00:34||Don Cragun||Interp Status||=> ---|
|2022-01-18 00:34||Don Cragun||Note Added: 0005620|
|2022-01-18 00:34||Don Cragun||Status||New => Closed|
|2022-01-18 00:34||Don Cragun||Resolution||Open => Duplicate|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|