[Libreoffice-bugs] [Bug 125637] New: names ending in underscore characters are allowed, but incorrectly handled at the end of a command line

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jun 2 12:19:36 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=125637

            Bug ID: 125637
           Summary: names ending in underscore characters are allowed, but
                    incorrectly handled at the end of a command line
           Product: LibreOffice
           Version: 3.3.0 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jag at psilosoph.de

Created attachment 151848
  --> https://bugs.documentfoundation.org/attachment.cgi?id=151848&action=edit
Draw file containing the code also posted in the report

(Heritage from StarOffice)

A variable name name like myChoice_ is generally recognized correctly. 
Occurring as the last item of a command line it is not correctly parsed. It may
 wrongly be interpreted as the respective name without the underscore at the
end. 

This may be related to the "feature" of using an isolated underscore at a
line's end meaning "continued next line". 

This bug may also be related to bug#57307

Run the code below to reproduce the issue.

Sub showTheIssue()
Dim a_ As Long
a_ = 1234
b  = a_
Print b
a = 55
b  = a_
Print b
b  = a_ * 1
REM Also works with : b  = (a_) 
Print b
b  = a_ REM Also works with anything clearly delimiting the line.
Print b
End Sub

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190602/a2ccb4b7/attachment.html>


More information about the Libreoffice-bugs mailing list