|
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 = 3 - "echo <FNAME> on / echo <FNAME> off" are for the single function <FNAME> only. >> echo off all >> echo func1 on >> func1(1) script2 x = x + 1; script2 x = x + 1; y = x; ans = 3 >> echo off all >> func1(1) ans = 3 >> echo func2 on Error using echo MATLAB file not found: func2 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?41202> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |