[Top][All Lists]

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

[Octave-bug-tracker] [bug #37131] input function doesn't handle newlines

From: anonymous
Subject: [Octave-bug-tracker] [bug #37131] input function doesn't handle newlines correctly
Date: Fri, 17 Aug 2012 13:31:58 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1


                 Summary: input function doesn't handle newlines correctly
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 17 Aug 2012 01:31:58 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: GNU/Linux



I issue the following:

input('some text\n', 's')

and I get

some text\n

rather than the expected

some text

That is, the newline character is treated as text rather than as a newline

I have compared with Matlab, and indeed in Matlab I get the latter (expected)
behavior. Note that Matlab's help explicitly states that newlines are
supported, while Octave's doesn't (and apparently, indeed it doesn't).

I am using Octave 3.6.1, compiled from source on 64-bit Ubuntu 11.10, and
Matlab R2010a.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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