[Top][All Lists]

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

[Octave-bug-tracker] [bug #41202] Spurious output when path() called wit

From: Michael C. Grant
Subject: [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on'
Date: Sat, 11 Jan 2014 16:50:00 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11

Follow-up Comment #17, bug #41202 (project octave):

Yes, I would say that MATLAB's rule for "echo on" is this: echo the command
*if* there is nothing but scripts in the call stack. If there is even one
function, don't echo.

I've done a little reading and I now realize that my analysis of "echo on all"
is wrong.

Here's the deal:
- "echo on / echo off / echo" are for SCRIPTS only.
- "echo on all / echo off all" are for FUNCTIONS only. Scripts are NOT
affected by these commands. So for instance:

>> echo on all
>> x=1;
>> script1

x =


- "echo <FNAME> on / echo <FNAME> off" are for the single function <FNAME>

>> echo off all
>> echo func1 on
>> func1(1)
x = x + 1;
x = x + 1;
y = x;

ans =


>> echo off all
>> func1(1)

ans =


>> echo func2 on
Error using echo
MATLAB file not found: func2


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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