octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41415] '...' mistaken as line continuation in


From: Markus Appel
Subject: [Octave-bug-tracker] [bug #41415] '...' mistaken as line continuation in double quoted string with % or #
Date: Fri, 31 Jan 2014 18:32:36 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

URL:
  <http://savannah.gnu.org/bugs/?41415>

                 Summary: '...' mistaken as line continuation in double quoted
string with % or #
                 Project: GNU Octave
            Submitted by: mappel
            Submitted on: Fri 31 Jan 2014 06:32:34 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I had some double quoted strings in scripts containing "... %d" for use with
sprintf, but since 3.8.0 three dots followed by % or # are mistaken as line
continuation followed by a comment:


octave:1> s = " ... "
s =  ... 
octave:2> s = " ... %"
warning: '...' continuations in double-quoted character strings are obsolete
and will not be allowed in a future version of Octave; please use '\' instead
> 
error: unterminated character string constant
parse error:

  syntax error

>>> 
    ^

octave:2> s = " ... #"
warning: '...' continuations in double-quoted character strings are obsolete
and will not be allowed in a future version of Octave; please use '\' instead
> 
error: unterminated character string constant
parse error:

  syntax error

>>> 
    ^



dev behaves the same, except it doesn't give the warning.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41415>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]