Austin Group Defect Tracker

Aardvark Mark III


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001295 [1003.1(2016)/Issue7+TC2] Shell and Utilities Comment Omission 2019-10-02 21:17 2019-10-02 21:49
Reporter hvd View Status public  
Assigned To
Priority normal Resolution Open  
Status New  
Name Harald van Dijk
Organization
User Reference
Section 2.13
Page Number 2383
Line Number 76231
Interp Status ---
Final Accepted Text
Summary 0001295: Left brackets in shell patterns may cause other pattern matching characters to be taken literally in all contexts
Description 2.13.3 "Patterns Used for Filename Expansion" states that for patterns that contain an open bracket that does not introduce a bracket expression, it is unspecified whether other unquoted pattern matching characters retain their special meanings. However, existing shell behaviour is that in shells where they do not retain their special meanings, this is not affected by whether the pattern is used for filename expansion, the characters do not retain their special meaning in other contexts either, the shells treat those characters as literal in case statements and parameter expansions involving #/##/%/%% too. The specification for this for patterns not used for filename expansion is missing.
Desired Action In 2.13.1 "Patterns Matching a Single Character", change

Otherwise, '[' shall match the character itself.

to

Otherwise, '[' shall match the character itself, and for patterns not used for filename expansion, it is unspecified whether other unquoted pattern matching characters within the same pattern retain their special meanings or are treated as ordinary characters. For example, the pattern "a*[" may match the literal string "a*[", or it may all strings beginning with 'a' and ending with '['. For patterns used for filename expansion, see 2.13.3.

(The proposed resolution for bug 1234 changes 2.13.3's "pattern matching characters" to "'*', '?', '[' or <backslash> characters". If that change is applied, the same change should be made in the desired action here.)
Tags No tags attached.
Attached Files

- Relationships
child of 0001234Interpretation Required in most shells, backslash doesn't have two meaning wrt pattern matching 

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-10-02 21:17 hvd New Issue
2019-10-02 21:17 hvd Name => Harald van Dijk
2019-10-02 21:17 hvd Section => 2.13
2019-10-02 21:17 hvd Page Number => -
2019-10-02 21:17 hvd Line Number => -
2019-10-02 21:45 Don Cragun Relationship added child of 0001234
2019-10-02 21:49 Don Cragun Page Number - => 2383
2019-10-02 21:49 Don Cragun Line Number - => 76231
2019-10-02 21:49 Don Cragun Interp Status => ---


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker