To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=66636
                 Issue #|66636
                 Summary|addsym.awk uses a gawk-specific syntax, may stop worki
                        |ng in the future
               Component|framework
                 Version|OOo 2.0.2
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|scripting
             Assigned to|npower
             Reported by|vda





------- Additional comments from [EMAIL PROTECTED] Thu Jun 22 05:49:51 -0700 
2006 -------
Copied from busybox's bug database
http://busybox.net/bugs/view.php?id=914

bbox's awk -f <this file> says: "awk: xregcomp: Unmatched \{".
gawk-3.0.4 doesn't.

This is because gawk's default regular expression support includes all POSIX
expressions *except* interval expressions

busybox's regular expression support includes all POSIX expressions including
internal expressions ... which means you need to escape the {

if you read the SUSv3 standards, busybox's behavior is compliant:
http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html
http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html#tag_04_06_13_04
 
 * Regular Expressions
   The awk utility shall make use of the extended regular expression notation
(see the Base Definitions volume of IEEE Std 1003.1-2001, Section 9.4, Extended
Regular Expressions)

http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_04
 
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_04_03
 
   The asterisk, plus-sign, question-mark, and left-brace shall be special
except when used in a bracket expression.

and in fact, the standard says that doing '\{' should always result in matching
of a '{'
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_03_02
 

so, since you arent using [{], and you arent using '\{', your code is not
portable and busybox makes no promise that it will work.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to