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

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

[Octave-bug-tracker] [bug #42248] echo_executing_commands delivers unexp


From: Sigbert Klinke
Subject: [Octave-bug-tracker] [bug #42248] echo_executing_commands delivers unexpected output
Date: Wed, 30 Apr 2014 16:05:03 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0

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

                 Summary: echo_executing_commands delivers unexpected output
                 Project: GNU Octave
            Submitted by: sigbert
            Submitted on: Mi 30 Apr 2014 16:05:01 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: sigbert
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The attached test.m called from the command line via  "octave -qf < test.m"
results in 3.8.0 & 3.8.1:


  ans =  4
  ans =

     17   24    1    8   15
     23    5    7   14   16
      4    6   13   20   22
     10   12   19   21    3
     11   18   25    2    9 


and in 3.6.4:


  + echo_executing_commands()
  ans =  4
  + magic(5)
  ans =

     17   24    1    8   15
     23    5    7   14   16
      4    6   13   20   22
     10   12   19   21    3
     11   18   25    2    9

  + echo_executing_commands(0); 


If I start octave 3.8.1 and type in the command by hand then I get the same
result as in 3.6.4. 

The problem might be with the function 


void octave_base_reader::do_input_echo (const std::string& input_string)
const


in the file libinterp/corefcn/input.cc .

When typing in the commands within octave the function is called, when calling
"octave -qf < test.m" the function seems not be called.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mi 30 Apr 2014 16:05:01 GMT  Name: test.m  Size: 95B   By: sigbert

<http://savannah.gnu.org/bugs/download.php?file_id=31288>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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