View Issue Details

IDProjectCategoryView StatusLast Update
00000491003.1(2008)/Issue 7Shell and Utilitiespublic2013-04-16 13:06
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Section2.6
Page Number2305
Line Number72699
Interp Status
Final Accepted Text
Summary0000049: Word Expansion text not clear
Description2.6 Word Expansions says:

    If an unquoted '$' is followed by a character that is either not
    numeric, the name of one of the special parameters (see Section
    2.5.2, on page 2302), a valid first character of a variable name,
    a <left-curly-bracket> ('{') or a <left-parenthesis>, the result
    is unspecified.

Obviously the intention is that the "not" should negate all of the
listed types of characters, but that is not how the sentence reads
to me.

It could perhaps be fixed by changing "either not" to "not either",
but the wording would still be somewhat awkward. The action
proposed below is a more extensive rewording that hopefully is
much clearer.
Desired ActionChange:

    If an unquoted '$' is followed by a character that is either not
    numeric, the name of one of the special parameters (see Section
    2.5.2, on page 2302), a valid first character of a variable name,
    a <left-curly-bracket> ('{') or a <left-parenthesis>, the result
    is unspecified.

to:

    If an unquoted '$' is followed by a character that is not one of
    the following:

      * a numeric character

      * the name of one of the special parameters (see Section 2.5.2,
        on page 2302)

      * a valid first character of a variable name

      * a <left-curly-bracket> ('{')

      * a <left-parenthesis>

    the result is unspecified.
Tagstc1-2008

Activities

Don Cragun

2009-06-25 12:46

manager   bugnote:0000087

Last edited: 2009-06-26 06:31

Originally reported by gwc:xxxxxxxxxxxxx
Thu, 19 Feb 2009 15:11:10 +0000
with Subject: Defect in XCU 2.6

Transcribed by Don Cragun from xcubug3.txt ERN 5

Submitter tag "gwc word expansions $"

Issue History

Date Modified Username Field Change
2009-06-25 12:42 Don Cragun New Issue
2009-06-25 12:42 Don Cragun Status New => Under Review
2009-06-25 12:42 Don Cragun Assigned To => ajosey
2009-06-25 12:42 Don Cragun Name => Geoff Clare
2009-06-25 12:42 Don Cragun Organization => The Open Group
2009-06-25 12:42 Don Cragun Section => 2.6
2009-06-25 12:42 Don Cragun Page Number => 2305
2009-06-25 12:42 Don Cragun Line Number => 72699
2009-06-25 12:46 Don Cragun Note Added: 0000087
2009-06-25 12:46 Don Cragun Reporter Don Cragun => geoffclare
2009-06-25 12:46 Don Cragun Status Under Review => Resolved
2009-06-25 12:46 Don Cragun Resolution Open => Accepted
2009-06-25 16:38 Don Cragun Tag Attached: real bug in aardvark
2009-06-26 06:31 Don Cragun Note Edited: 0000087
2009-07-30 16:06 msbrown Tag Detached: real bug in aardvark
2010-08-19 16:50 ajosey Tag Attached: tc1
2010-08-27 10:36 ajosey Tag Renamed tc1 => tc1-2008
2013-04-16 13:06 ajosey Status Resolved => Closed