A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1190 
====================================================================== 
Reported By:                geoffclare
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1190
Category:                   Base Definitions and Headers
Type:                       Clarification Requested
Severity:                   Comment
Priority:                   normal
Status:                     New
Name:                       Geoff Clare 
Organization:               The Open Group 
User Reference:              
Section:                    9.3.5 
Page Number:                184 
Line Number:                6089 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2018-04-13 11:16 UTC
Last Modified:              2018-04-16 14:41 UTC
====================================================================== 
Summary:                    backslash has two special meanings in the shell and
only loses one of them in bracket expressions
====================================================================== 

---------------------------------------------------------------------- 
 (0003963) geoffclare (manager) - 2018-04-16 14:41
 http://austingroupbugs.net/view.php?id=1190#c3963 
---------------------------------------------------------------------- 
Re: http://austingroupbugs.net/view.php?id=1190#c3960, XCU 2.13.1 clearly
defines a pattern-matching rule,
distinct from the usual quoting rule, for backslash in the shell (in the
first paragraph - it specifies it separately in the last paragraph for
non-shell pattern matchers).  It appears that bash and zsh are implementing
the standard as written but the other shells you tested are not.

When testing this stuff note that ksh93 is known to behave incorrectly as
regards quoting inside bracket expressions - that was the reason this whole
discussion started in the first place.  ksh88 also has some weird bugs,
such as ["a\-c"] matching 'a', backslash and 'c' but not  '-'.

Re: http://austingroupbugs.net/view.php?id=1190#c3962, your final observation
would seem to be a reason to keep
the standard's requirements in 2.13.1 as-is, so that pattern='\\*' can be
used for this, which works in bash and presumably zsh. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2018-04-13 11:16 geoffclare     New Issue                                    
2018-04-13 11:16 geoffclare     Name                      => Geoff Clare     
2018-04-13 11:16 geoffclare     Organization              => The Open Group  
2018-04-13 11:16 geoffclare     Section                   => 9.3.5           
2018-04-13 11:16 geoffclare     Page Number               => 184             
2018-04-13 11:16 geoffclare     Line Number               => 6089            
2018-04-13 11:16 geoffclare     Interp Status             => ---             
2018-04-13 11:18 geoffclare     Desired Action Updated                       
2018-04-13 12:39 kre            Note Added: 0003954                          
2018-04-13 13:47 geoffclare     Note Added: 0003955                          
2018-04-14 17:17 stephane       Note Added: 0003957                          
2018-04-16 08:31 geoffclare     Note Added: 0003958                          
2018-04-16 09:23 geoffclare     Note Added: 0003959                          
2018-04-16 09:25 geoffclare     Note Edited: 0003959                         
2018-04-16 11:06 stephane       Note Added: 0003960                          
2018-04-16 11:10 stephane       Note Edited: 0003960                         
2018-04-16 11:12 stephane       Note Edited: 0003960                         
2018-04-16 11:21 stephane       Note Added: 0003961                          
2018-04-16 11:22 stephane       Note Edited: 0003961                         
2018-04-16 11:27 stephane       Note Edited: 0003961                         
2018-04-16 11:45 stephane       Note Added: 0003962                          
2018-04-16 12:18 stephane       Note Edited: 0003962                         
2018-04-16 12:22 stephane       Note Edited: 0003962                         
2018-04-16 14:41 geoffclare     Note Added: 0003963                          
======================================================================


Reply via email to