A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1038 
====================================================================== 
Reported By:                kre
Assigned To:                
====================================================================== 
Project:                    1003.1(2013)/Issue7+TC1
Issue ID:                   1038
Category:                   Shell and Utilities
Type:                       Error
Severity:                   Objection
Priority:                   normal
Status:                     New
Name:                       Robert Elz 
Organization:                
User Reference:              
Section:                    2.5.3, 2.6 
Page Number:                2352 
Line Number:                74952 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2016-03-24 18:24 UTC
Last Modified:              2017-03-04 07:34 UTC
====================================================================== 
Summary:                    Specification relies upon unspecified behaviour
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0001006 PS1 should be subject to command substi...
====================================================================== 

---------------------------------------------------------------------- 
 (0003607) kre (reporter) - 2017-03-04 07:34
 http://austingroupbugs.net/view.php?id=1038#c3607 
---------------------------------------------------------------------- 
In addition if you still believe that the rules in 2.3 are somehow
relevant
when performing word expansions (on text that has already been tokenised,
or
never will be) consider the (not specified by the standard, but everyone
does
it) case of PS1='# ' and imagine what would happen to that when rule 9 of
section 2.3 is applied...

I have no idea why section 2.6 when giving the order of the expansions,
when
many are to apply, refers back to rule 5 of section 2.3 in case 1 - except
that I guess it says how to find the full set of chars that make up the
expansion (how to match the closing ')' in a '$(' command expansion - but
there is obviously cannot be any intent that section 2.3 be used in
general
(that would simply be wrong.)

Section 2.6 as a whole really needs major work - it is written as if the
only time expansions get done is when processing the args of a command
line.
There ought to be one section for that, and then separately, sections for
each of the types of expansions which specify how they are done, when they
apply (which includes PSn processing, here doc processing, and more I
expect,
which have nothing whatever to do with command lines.)   But all that work
is
more than is needed right now.

kre 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-24 18:24 kre            New Issue                                    
2016-03-24 18:24 kre            Name                      => Robert Elz      
2016-03-24 18:24 kre            Section                   => 2.5.3, 2.6      
2016-03-24 18:24 kre            Page Number               => unknown         
2016-03-24 18:24 kre            Line Number               => unknown         
2016-08-11 15:29 Don Cragun     Relationship added       related to 0001006  
2017-03-02 16:22 nick           Page Number              unknown => 2352     
2017-03-02 16:22 nick           Line Number              unknown => 74952    
2017-03-02 16:22 nick           Interp Status             => ---             
2017-03-03 14:42 shware_systems Note Added: 0003589                          
2017-03-03 15:27 eblake         Note Added: 0003590                          
2017-03-03 15:50 kre            Note Added: 0003591                          
2017-03-03 15:59 joerg          Note Added: 0003593                          
2017-03-03 16:10 geoffclare     Note Added: 0003594                          
2017-03-03 16:41 shware_systems Note Added: 0003595                          
2017-03-03 16:44 joerg          Note Deleted: 0003593                        
2017-03-03 16:46 chet_ramey     Note Added: 0003597                          
2017-03-03 17:15 Don Cragun     Note Added: 0003598                          
2017-03-03 17:16 Don Cragun     Note Edited: 0003598                         
2017-03-03 18:58 chet_ramey     Note Added: 0003599                          
2017-03-03 19:03 eblake         Note Added: 0003600                          
2017-03-03 19:54 chet_ramey     Note Added: 0003601                          
2017-03-03 19:57 shware_systems Note Added: 0003602                          
2017-03-03 20:00 shware_systems Note Edited: 0003602                         
2017-03-03 23:50 kre            Note Added: 0003604                          
2017-03-03 23:52 kre            Note Edited: 0003604                         
2017-03-03 23:55 kre            Note Edited: 0003604                         
2017-03-04 00:37 kre            Note Edited: 0003604                         
2017-03-04 05:19 shware_systems Note Added: 0003605                          
2017-03-04 07:08 kre            Note Added: 0003606                          
2017-03-04 07:34 kre            Note Added: 0003607                          
======================================================================


Reply via email to