[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2022-01-17 Thread Austin Group Bug Tracker via austin-group-l at The Open Group


The issue 0001552 has been set as DUPLICATE OF the following issue. 
== 
https://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Applied
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:See
https://austingroupbugs.net/view.php?id=985#c4562. 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-11-28 12:08 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001234 in most shells, backslash doesn't have ...
has duplicate   0001552 minor improvement in the description of...
related to  0001190 backslash has two special meanings in t...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansenStatus   Interpretation Required
=> New
2015-11-05 17:09 rhansenResolution   Accepted As Marked 

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-11-28 Thread Austin Group Bug Tracker


The following issue has a resolution that has been APPLIED. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Applied
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:See
http://austingroupbugs.net/view.php?id=985#c4562. 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-11-28 12:08 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001234 in most shells, backslash doesn't have ...
related to  0001190 backslash has two special meanings in t...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansenStatus   Interpretation Required
=> New
2015-11-05 17:09 rhansenResolution   Accepted As Marked =>
Open
2015-11-05 17:17 rhansenNote Added: 0002885   

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-10-29 Thread Austin Group Bug Tracker


The following issue has been UPDATED. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Interpretation Required
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:See
http://austingroupbugs.net/view.php?id=985#c4562. 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-10-29 10:34 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001234 in most shells, backslash doesn't have ...
related to  0001190 backslash has two special meanings in t...
== 

-- 
 (0004633) agadmin (administrator) - 2019-10-29 10:34
 http://austingroupbugs.net/view.php?id=985#c4633 
-- 
Interpretation approved: 29 October 2019 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansen

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-09-24 Thread Austin Group Bug Tracker


The following issue has been UPDATED. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Interpretation Required
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Proposed 
Final Accepted Text:See
http://austingroupbugs.net/view.php?id=985#c4562. 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-09-24 08:53 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001234 in most shells, backslash doesn't have ...
related to  0001190 backslash has two special meanings in t...
== 

-- 
 (0004566) agadmin (administrator) - 2019-09-24 08:53
 http://austingroupbugs.net/view.php?id=985#c4566 
-- 
Interpretation proposed 23 Sep 2019 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansenStatus   

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-09-23 Thread Austin Group Bug Tracker


The following issue has been set as RELATED TO issue 0001234. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Interpretation Required
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Pending 
Final Accepted Text:See
http://austingroupbugs.net/view.php?id=985#c4562. 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-09-23 15:44 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001234 in most shells, backslash doesn't have ...
related to  0001190 backslash has two special meanings in t...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansenStatus   Interpretation Required
=> New
2015-11-05 17:09 rhansenResolution   Accepted As Marked =>
Open
2015-11-05 17:17 rhansenNote Added: 0002885  
2015-11-05 17:21 rhansenNote Edited: 0002885   

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-09-23 Thread Austin Group Bug Tracker


A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Interpretation Required
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Pending 
Final Accepted Text:See
http://austingroupbugs.net/view.php?id=985#c4562. 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-09-23 15:42 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001190 backslash has two special meanings in t...
== 

-- 
 (0004565) shware_systems (reporter) - 2019-09-23 15:42
 http://austingroupbugs.net/view.php?id=985#c4565 
-- 
The majority of issues handled by Note 2885 are now incorporated into the
resolution to Bug 1234, which is why proposed interpretation of Note 4562
is significantly shorter. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884 

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-09-23 Thread Austin Group Bug Tracker


The following issue has been UPDATED. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Interpretation Required
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Pending 
Final Accepted Text:See
http://austingroupbugs.net/view.php?id=985#c4562. 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-09-23 15:39 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001190 backslash has two special meanings in t...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansenStatus   Interpretation Required
=> New
2015-11-05 17:09 rhansenResolution   Accepted As Marked =>
Open
2015-11-05 17:17 rhansenNote Added: 0002885  
2015-11-05 17:21 rhansenNote Edited: 0002885 
2015-11-05 17:22 geoffclare Note Deleted: 0002876   

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-09-23 Thread Austin Group Bug Tracker


The following issue NEEDS AN INTERPRETATION. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Interpretation Required
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:See
http://austingroupbugs.net/view.php?id=985#c4562. 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-09-23 15:38 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001190 backslash has two special meanings in t...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansenStatus   Interpretation Required
=> New
2015-11-05 17:09 rhansenResolution   Accepted As Marked =>
Open
2015-11-05 17:17 rhansenNote Added: 0002885  
2015-11-05 17:21 rhansenNote Edited: 0002885 
2015-11-05 17:22 geoffclare Note Deleted: 0002876   

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-09-23 Thread Austin Group Bug Tracker


A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Under Review
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=985#c2885 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-09-23 15:36 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001190 backslash has two special meanings in t...
== 

-- 
 (0004562) shware_systems (reporter) - 2019-09-23 15:36
 http://austingroupbugs.net/view.php?id=985#c4562 
-- 
After the 2019-09-23 call, new interpretation is:

Interpretation response


Regarding parameter expansions ${var:-word}, ${var:=word}, etc., the
standard is unclear on this issue, and no conformance distinction can be
made between alternative implementations based on this. This is being
referred to the sponsor.

Regarding case statement patterns, the standard clearly states how quoting
affects pattern matching in case statements, and conforming implementations
must conform to this.

Rationale:
-
Omitting quote removal from the expansions listed for the word in
${var:-word}, ${var:=word}, etc. is an oversight; it is believed that all
implementations perform quote removal, as intended.

It is clear in XCU section 2.13.1 that the characters '?', '*' and '[' are
only special in pattern matching when unquoted and not inside a bracket
expression.  Once the matching operation has been performed, it is
irrelevant whether quote removal is then performed since the pattern is not
used for anything further after that point.


Notes to the Editor (not part of this interpretation):
---

On page 2354 line 75061 section 2.6.2 Parameter Expansion, change:

word shall be subjected to tilde expansion,
parameter expansion, command substitution, and arithmetic
expansion


to:

word shall be subjected to tilde expansion,
parameter expansion, command substitution, arithmetic expansion, and quote
removal


On page 2383 line 76227 section 2.13.1 Patterns Matching a Single
Character, change:

If an open bracket introduces a bracket expression as in
XBD Section 9.3.5, except that the  character ('!') shall
replace the  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
 character produces unspecified results. Otherwise, '[' shall
match the character itself.


to:


A  shall introduce a bracket
expression if the characters following it meet the requirements for bracket
expressions stated in [xref to XBD Section 9.3.5], except that the
 character (’!’) shall replace the
 character (’ˆ’) in its role in a non-matching
list in the regular expression notation.  A bracket expression starting
with an unquoted  character produces unspecified results. A
 that does not introduce a valid bracket expression
shall match the character itself.

 
On page 2327 line 73887 (XCU 2.6 Word Expansions), change:


4. Quote removal (see Section 2.6.7) shall always be
performed last.


to:

4. Quote removal (see Section 2.6.7), if performed, shall
always be performed last. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew 

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-03-12 Thread Austin Group Bug Tracker


A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Under Review
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=985#c2885 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-03-12 12:39 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001190 backslash has two special meanings in t...
== 

-- 
 (0004315) kre (reporter) - 2019-03-12 12:39
 http://austingroupbugs.net/view.php?id=985#c4315 
-- 
Re Note 4311 (this part of this discussion does belong here...)

You're right about the two possibilities wrt quote removal and
case patterns - but the answer is clearly (should be clearly)
"is not performed at all".   That's the way the text in the std
reads now - and what this bug was intended to change.   There never
was a need, the standard in this area was correct before.

But the bug report is misconceived, patterns always match before
quote removal happens, that's the way they work in pathname expansion
and the way they work in substring matching in parameter expansion.
There is no reason at all for pattern matching to be different, and
every conceivable reason to keep it the same - it means that the same
rules apply for pattern matching in all cases (other than the special
cases for / and leading . in pathname expansion).

This issue should simply be rejected as misconceived.

All the rest of the work that has been done here on how pattern matching
works should be moved elsewhere - either that or the subject of this
issue should be changed to have nothing whatever to do with quote
removal on case patterns.

When one of those happens, the descriptions of how pattern matching works
can be simplified, as we simply have quoted and not quoted, plus unquoted
backslash characters to deal with, none of this "characters that were
quoted"
or whatever, which would be absurdly difficult to specify in any way that
was both correct, and understandable. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-03-12 Thread Austin Group Bug Tracker


A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Under Review
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=985#c2885 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-03-12 10:10 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001190 backslash has two special meanings in t...
== 

-- 
 (0004311) geoffclare (manager) - 2019-03-12 10:10
 http://austingroupbugs.net/view.php?id=985#c4311 
-- 
Re http://austingroupbugs.net/view.php?id=985#c4219 (last part), the "If quote
removal" stuff cannot simply be
deleted.

There are two possibilities regarding quote removal and "case": either
quote removal is performed before pattern matching, or quote removal is not
performed at all. (It would be nonsensical to say it is done after pattern
matching, because once pattern matching has been done there is nothing more
that the word will be used for.)  So neither of these cases fits the second
bullet item, as it talks about "the quote characters that will be removed
when quote removal is performed".

I worded the first bullet item as "If quote removal ... has already been
performed" because that matches the proposed new description of "case" in
http://austingroupbugs.net/view.php?id=985#c2885. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-03-04 Thread Austin Group Bug Tracker


The following issue has been set as RELATED TO issue 0001190. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Under Review
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=985#c2885 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-01-23 06:04 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
related to  0001190 backslash has two special meanings in t...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansenStatus   Interpretation Required
=> New
2015-11-05 17:09 rhansenResolution   Accepted As Marked =>
Open
2015-11-05 17:17 rhansenNote Added: 0002885  
2015-11-05 17:21 rhansenNote Edited: 0002885 
2015-11-05 17:22 geoffclare Note Deleted: 0002876  

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2019-01-22 Thread Austin Group Bug Tracker


A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Under Review
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=985#c2885 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2019-01-23 06:04 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
== 

-- 
 (0004219) kre (reporter) - 2019-01-23 06:04
 http://austingroupbugs.net/view.php?id=985#c4219 
-- 
Re note 3970 first...

The strcmp() alternative to pattern matching is just plain
crazy, and should in no way be endorsed.   At the most it
might be said that it is unspecified whether that happens
(because those broken shells do it, apparently).

The final sentence is irrelevant as there is no such thing as an
"illegal pattern" every sting can be considered as a pattern,
and they all match something.   The example given is simply a
string or ordinary chars (no meta chars appear - the '[' is not
as there's no suitable ']' to cause it to be) so for that example
there is certainly no need for a strcmp() to enable matching,
regular glob matching will work for that one.

Where strcmp() does make a difference, is for a case like

case "a[b]c" in
( a[b]c ) echo BUG;;
esac

and when it happens (ie: matches), it is never what the
script writer intended - in that case, if they had intended
to match literal a literal [ they would have quoted it.

Re note 3948...

The "If quote removal" stuff should just be deleted, quote
removal should never be performed on patterns before they
are used.  There is no point.   Rather the second bullet
item just needs to have its "if" precondition removed (and
it woudl no longer need to be a bullet item.) 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 

Re: Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-18 Thread Joerg Schilling
Geoff Clare  wrote:

> I checked my copy of SVID-3 and it says "The form of the patterns is
> the same as that used for filename generation".  No mention of a
> fall-back string compare.
>
> If it's not specified in SVID-3 then there won't be a test for it in
> the SVID-3 tests.

Thank you! 

BTW: Do you know a way to get a copy of SVID-3?

> Thank you for agreeing to remove the feature in strict POSIX mode.
> Please consider also removing it in the default mode and only
> retaining it in a "bug-compatible historical behaviour" mode.

As you see in the patch from the last mail I send, I already have a modification
in my current developments version that is activated via "set -o posix".

Since ksh88 and ksh93 currently implement this feature by default, I am not yet 
sure whether I should disable it completely (well, except for the special 
binary 
"osh" that aims to be 100% compatible to "/bin/sh" on Solaris 10).


Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'



Re: Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-18 Thread Geoff Clare
Joerg Schilling  wrote, on 18 Apr 2018:
>
> BTW: I asked David Korn and he send a reply last night.
> 
> David cannot remember anymore that he implemented the vanilla string compare 
> and now believes that "case" should behave similar to [[ ... ]].
> 
> David asked whether there is any regression test for that feature.
> 
> So my idea is to let people from Oracle check whether the SVID-3 tests 
> include 
> a test for this feature. If there is no SVID-3 test that requires the curent 
> behavior, I would be OK with making this behavior forbidden, when in strict 
> POSIX mode.

I checked my copy of SVID-3 and it says "The form of the patterns is
the same as that used for filename generation".  No mention of a
fall-back string compare.

If it's not specified in SVID-3 then there won't be a test for it in
the SVID-3 tests.

Thank you for agreeing to remove the feature in strict POSIX mode.
Please consider also removing it in the default mode and only
retaining it in a "bug-compatible historical behaviour" mode.

-- 
Geoff Clare 
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England



Re: Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-18 Thread Geoff Clare
Joerg Schilling  wrote, on 17 Apr 2018:
>
> Stephane Chazelas  wrote:
> > 
> > To work around that bug/misfeature, one would have to do:
> >
> >
> > case $answer in
> >   "[0-9]") echo KO;;
> >   [0-9]) echo OK;;
> >   *) echo KO;;
> > esac
> 
> So, thank you.
> 
> There is a way to deal with this kind of behavior.

This work-around is not a workable solution to the problem.  It would
require every script that has an affected case statement to be reviewed
and updated.  We're talking probably millions of scripts.  And even if
we put a prominent warning in POSIX about the need for it, there
would still be large numbers of script authors who would remain unaware
of the need to do it.

Face it Joerg, this is an incredibly bad misfeature of the original
Bourne shell that should be removed from all shells that perpetuate
it as soon as possible.

-- 
Geoff Clare 
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England



Re: Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-17 Thread Joerg Schilling
Stephane Chazelas  wrote:

> I strongly agree. I just checked the original Bourne shell
> implementation in V7 and it was already the case (and not
> documented there either).
>
> Note that I just found out about it by accident, I wonder if
> anybody has ever been aware of it.
>
> Joerg, were you aware of it?

I was aware of this behavior since I started to carefully read the source in 
2012 when I started to make changes to the Bourne Shell in order to make it 
POSIX compliant.

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'



Re: Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-17 Thread Geoff Clare
Joerg Schilling  wrote, on 17 Apr 2018:
>
> This is the behavior of Bourne Shell and ksh88 that was the master for the
> POSIX shell definition.
[...]
> > This behaviour is, frankly, utterly broken and I'm astonished that
> > any shell author would think it was a good idea.
> 
> In your specific example, it looks incorrect. In many other cases, it seems 
> to 
> be helpful.
> 
> If you do not like to make existing behavior of the reference implementations 
> incorrect, there needs to be a better solution for the problem you mention.

I'm sure that if this behaviour had been known to the POSIX.2 developers,
they would have chosen not to include it in the standard.  There are
other places where they intentionally diverged from the way ksh88
behaved at the time.

-- 
Geoff Clare 
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England



Re: Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-17 Thread Stephane Chazelas
2018-04-17 16:24:09 +0200, Joerg Schilling:
[...]
> > This behaviour is, frankly, utterly broken and I'm astonished that
> > any shell author would think it was a good idea.
> 
> In your specific example, it looks incorrect. In many other cases, it seems 
> to 
> be helpful.
[...]

Can you please give an example where it could be useful?

IMO, it should be (remain) treated as a bug/misdesign of
Bourne/ksh88.

Note that, as I said earlier ksh (88 and 93) doesn't do it for
[[ string = pattern ]], so presumably, it only does it for
backward portability with the Bourne shell (it's even possible
David Korn hadn't realised the Bourne shell was doing that and
just inherited the code).

> If you do not like to make existing behavior of the reference implementations 
> incorrect, there needs to be a better solution for the problem you mention.

To work around that bug/misfeature, one would have to do:


case $answer in
  "[0-9]") echo KO;;
  [0-9]) echo OK;;
  *) echo KO;;
esac

-- 
Stephane



Re: Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-17 Thread Stephane Chazelas
2018-04-17 15:02:17 +0100, Geoff Clare:
[...]
> I don't think bug 985 is the right place to raise this.  If you want
> to pursue it please create a separate bug.
> 
> Personally I am very strongly opposed to allowing this behaviour in
> the standard.
[...]

I strongly agree. I just checked the original Bourne shell
implementation in V7 and it was already the case (and not
documented there either).

Note that I just found out about it by accident, I wonder if
anybody has ever been aware of it.

Joerg, were you aware of it?

-- 
Stephane



Re: Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-17 Thread Joerg Schilling
Geoff Clare  wrote:

> I don't think bug 985 is the right place to raise this.  If you want
> to pursue it please create a separate bug.

Well, the original description of Bug 985 was related only to quote removal in 
the shell ant to case statements.

> Personally I am very strongly opposed to allowing this behaviour in
> the standard.  It breaks applications which perform input validation
> such as:
>
> case $input in
> [0-9]) ;;
> *) echo "Input must be a single digit"; exit ;;
> esac
>
> This code is supposed only to allow the script to proceed when $input
> is a single digit, but with fall-back string matching it would
> proceed with input='[0-9]'.

This is the behavior of Bourne Shell and ksh88 that was the master for the
POSIX shell definition. Even ksh93 implements it and if you look at the test
script from Stephane, you see that the output for ksh93 with the first test 
case:


[\]*
ksh93[1]: [\]*
ksh93[2]: [\]*

gives only this strcmp() type match.

> This behaviour is, frankly, utterly broken and I'm astonished that
> any shell author would think it was a good idea.

In your specific example, it looks incorrect. In many other cases, it seems to 
be helpful.

If you do not like to make existing behavior of the reference implementations 
incorrect, there needs to be a better solution for the problem you mention.

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'



Fall-back string matching in "case" (was: [1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions)

2018-04-17 Thread Geoff Clare
> -- 
>  (0003970) joerg (reporter) - 2018-04-17 13:46
>  http://austingroupbugs.net/view.php?id=985#c3970 
> -- 
> In the Bourne Shell and in ksh88, the case statement first tries
> to match the case argument against the pattern using gmatch() and
> in case this does not result in a match, the quoting on the pattern
> is removed and a plain string compare is done.
> 
> In case if the example from the "Description", the case argument is
> the C string "foo  bar" and the pattern is the C string 
> "\\f\\o\\o\\ \\ \\b\\a\\r" that yields in the string: \f\o\o\ \ \b\a\r
> 
> gmatch("foo  bar", "\\f\\o\\o\\ \\ \\b\\a\\r") gives a match.
> 
> If this did not result in a match, quotes in the pattern would be
> removed and strcmp() called with the "case" argument and the pattern
> with it's quoting removed. This results in a call to:
> 
> strcmp("foo  bar", "foo  bar") that also gives a match. 

I don't think bug 985 is the right place to raise this.  If you want
to pursue it please create a separate bug.

Personally I am very strongly opposed to allowing this behaviour in
the standard.  It breaks applications which perform input validation
such as:

case $input in
[0-9]) ;;
*) echo "Input must be a single digit"; exit ;;
esac

This code is supposed only to allow the script to proceed when $input
is a single digit, but with fall-back string matching it would
proceed with input='[0-9]'.

This behaviour is, frankly, utterly broken and I'm astonished that
any shell author would think it was a good idea.

-- 
Geoff Clare 
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England



[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2018-04-12 Thread Austin Group Bug Tracker

A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Under Review
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=985#c2885 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2018-04-12 08:11 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
== 

-- 
 (0003948) geoffclare (manager) - 2018-04-12 08:11
 http://austingroupbugs.net/view.php?id=985#c3948 
-- 
On second thoughts, while the behaviour can't be specified in terms of an
fnmatch() call, perhaps it can still be done by reference to the fnmatch()
description.  Here's a suggested new version of 2.13 to replace the one in
http://austingroupbugs.net/view.php?id=985#c2885:

2.13 Pattern Matching Notation

The shell shall perform pattern matching as described for the
fnmatch() function (see [xref to XSH fnmatch()]) with the third
argument (flags) set to FNM_PATHNAME|FNM_PERIOD when the
pattern is being used for pathname expansion and 0 otherwise, except
that:If quote removal (see Section 2.6.7) has already been
performed on the pattern (as, for example, in a case compound
command), each character that was quoted by the quote characters that were
removed when quote removal was performed shall be treated as a literal
character.If quote removal has not yet been performed on the
pattern, the quote characters that will be removed when quote removal is
performed shall not be considered to be part of the pattern and each
character that is quoted by those quote characters shall be treated as a
literal character. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2018-04-11 Thread Austin Group Bug Tracker

The following issue is UNDER REVIEW. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Under Review
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=985#c2885 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2018-04-11 15:54 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
== 

-- 
 (0003947) geoffclare (manager) - 2018-04-11 15:54
 http://austingroupbugs.net/view.php?id=985#c3947 
-- 
Reopening based on email discussion about quoting within bracket
expressions.

It seems that the shell cannot use fnmatch() to do pattern matching because
of cases such as ["a-c"] which becomes [a-c] after quote removal but with
no way to tell fnmatch() that the originally quoted '-' should be treated
literally, since backslash is not special inside bracket expressions.  (The
shell could pass "[-ac]" for this specific case, but rearrangement is not a
general solution.)

Given that the shell cannot use fnmatch(), there does not seem to be any
point in trying to specify the behaviour in terms of an fnmatch() call.  We
should revert to a solution like the previous one (i.e.
http://austingroupbugs.net/view.php?id=985#c2863 with
the issues mentioned in http://austingroupbugs.net/view.php?id=985#c2884
addressed in a different way). 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note 

[1003.1(2013)/Issue7+TC1 0000985]: quote removal missing from case statement patterns and alternative expansions

2017-01-18 Thread Austin Group Bug Tracker

The following issue has been UPDATED. 
== 
http://austingroupbugs.net/view.php?id=985 
== 
Reported By:rhansen
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   985
Category:   Shell and Utilities
Type:   Omission
Severity:   Objection
Priority:   normal
Status: Interpretation Required
Name:   Richard hansen 
Organization:   BBN 
User Reference:  
Section:2.6.2, 2.9.4.3 
Page Number:2328, 2345 
Line Number:73944-73945, 74602-74603 
Interp Status:  Approved 
Final Accepted Text:http://austingroupbugs.net/view.php?id=985#c2885 
== 
Date Submitted: 2015-09-17 19:22 UTC
Last Modified:  2017-01-18 15:24 UTC
== 
Summary:quote removal missing from case statement patterns
and alternative expansions
==
Relationships   ID  Summary
--
related to  221 poor wording about even quotes in doubl...
related to  249 Add standard support for $'...' in shell
== 

-- 
 (0003550) ajosey (manager) - 2017-01-18 15:24
 http://austingroupbugs.net/view.php?id=985#c3550 
-- 
Interpretation Approved: 18 Jan 2017 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2015-09-17 19:22 rhansenNew Issue
2015-09-17 19:22 rhansenName  => Richard hansen  
2015-09-17 19:22 rhansenOrganization  => BBN 
2015-09-17 19:22 rhansenSection   => 2.6.2, 2.9.4.3  
2015-09-17 19:22 rhansenPage Number   => 2328, 2345  
2015-09-17 19:22 rhansenLine Number   => 73944-73945,
74602-74603
2015-09-17 19:22 rhansenInterp Status => --- 
2015-09-17 19:23 rhansenDesired Action Updated   
2015-09-17 19:24 rhansenDesired Action Updated   
2015-09-18 08:34 geoffclare Relationship added   related to 221  
2015-09-18 08:39 geoffclare Note Added: 0002835  
2015-09-18 20:08 shware_systems Note Added: 0002839  
2015-09-18 20:18 shware_systems Note Edited: 0002839 
2015-10-01 18:29 rhansenNote Added: 0002852  
2015-10-02 08:45 geoffclare Note Added: 0002853  
2015-10-02 17:13 rhansenNote Added: 0002855  
2015-10-03 00:57 shware_systems Note Added: 0002856  
2015-10-04 07:52 geoffclare Note Added: 0002858  
2015-10-08 16:14 rhansenNote Added: 0002863  
2015-10-08 16:31 rhansenNote Added: 0002864  
2015-10-08 16:40 geoffclare Note Added: 0002865  
2015-10-08 16:41 rhansenRelationship added   related to 249  
2015-10-08 20:39 shware_systems Note Added: 0002866  
2015-10-15 15:55 geoffclare Note Edited: 0002863 
2015-10-15 15:56 geoffclare Note Edited: 0002865 
2015-10-15 15:59 geoffclare Note Added: 0002876  
2015-10-15 16:00 geoffclare Interp Status--- => Pending  
2015-10-15 16:00 geoffclare Final Accepted Text   => bugnote:2876
2015-10-15 16:00 geoffclare Status   New => Interpretation
Required
2015-10-15 16:00 geoffclare Resolution   Open => Accepted As
Marked
2015-10-15 16:01 geoffclare Tag Attached: tc3-2008   
2015-11-05 17:09 rhansenFinal Accepted Text  bugnote:2876 => 
2015-11-05 17:09 rhansenNote Added: 0002884  
2015-11-05 17:09 rhansenStatus   Interpretation Required
=> New
2015-11-05 17:09 rhansenResolution   Accepted As Marked =>
Open
2015-11-05 17:17