[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: |
Fri, 10 Jan 2014 23:01:06 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?41202>
Summary: Spurious output when path() called with 'echo on'
Project: GNU Octave
Submitted by: mcgrant
Submitted on: Fri 10 Jan 2014 11:01:05 PM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Michael C. Grant
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.0
Operating System: Any
_______________________________________________________
Details:
CVX does some hacky things sometimes. One of those things is to modify the
PATH: when "cvx_begin" is called, I add some directories into the path; and
when "cvx_end" is called, I remove them.
I do this because I don't want some of the commands I define to pollute the
namespace when CVX is not being used. The names are pretty generic, like
"expression", "dual", "binary", etc.
Now, what I've discovered is that when I call the "path()" command with ECHO
ON, it spits out all of this output, attached below. This makes demos
involving CVX pretty much impossible to follow.
I thought about whether this is actually a bug, and it seems to me that it
must be. path() is a function, and not only that, it's a built-in function. So
I should not be seeing any output if I use it. I am sure there are legitimate
reasons for running a script from within path(), but I need to expect it to
behave like a function when I do so.
colormap ("register", "autumn");
colormap ("register", "bone");
colormap ("register", "cool");
colormap ("register", "copper");
colormap ("register", "flag");
colormap ("register", "gmap40");
colormap ("register", "gray");
colormap ("register", "hot");
colormap ("register", "hsv");
colormap ("register", "jet");
colormap ("register", "lines");
colormap ("register", "ocean");
colormap ("register", "pink");
colormap ("register", "prism");
colormap ("register", "rainbow");
colormap ("register", "spring");
colormap ("register", "summer");
colormap ("register", "white");
colormap ("register", "winter");
endscript;
## Discard result to avoid polluting workspace with ans at startup.
~ = __all_opts__ ("fminbnd");
## Discard result to avoid polluting workspace with ans at startup.
~ = __all_opts__ ("fminsearch");
## Discard result to avoid polluting workspace with ans at startup.
~ = __all_opts__ ("fminunc");
## Discard result to avoid polluting workspace with ans at startup.
~ = __all_opts__ ("fsolve");
## Discard result to avoid polluting workspace with ans at startup.
~ = __all_opts__ ("fzero");
## Discard result to avoid polluting workspace with ans at startup.
~ = __all_opts__ ("lsqnonneg");
## Discard result to avoid polluting workspace with ans at startup.
~ = __all_opts__ ("pqpnonneg");
## Discard result to avoid polluting workspace with ans at startup.
~ = __all_opts__ ("qp");
endscript;
autoload ("__fltk_maxtime__", "__init_fltk__.oct");
autoload ("__fltk_redraw__", "__init_fltk__.oct");
autoload ("__have_fltk__", "__init_fltk__.oct");
autoload ("gui_mode", "__init_fltk__.oct");
autoload ("mouse_wheel_zoom", "__init_fltk__.oct");
if (__have_fltk__ () && have_window_system ())
register_graphics_toolkit ("fltk");
endif;
register_graphics_toolkit ("fltk");
register_graphics_toolkit ("gnuplot");
autoload ("__magick_finfo__", "__magick_read__.oct");
autoload ("__magick_formats__", "__magick_read__.oct");
autoload ("__magick_ping__", "__magick_read__.oct");
autoload ("__magick_write__", "__magick_read__.oct");
autoload ("csymamd", "ccolamd.oct");
autoload ("chol2inv", "chol.oct");
autoload ("choldelete", "chol.oct");
autoload ("cholinsert", "chol.oct");
autoload ("cholinv", "chol.oct");
autoload ("cholshift", "chol.oct");
autoload ("cholupdate", "chol.oct");
autoload ("etree", "colamd.oct");
autoload ("symamd", "colamd.oct");
autoload ("sprank", "dmperm.oct");
autoload ("qrdelete", "qr.oct");
autoload ("qrinsert", "qr.oct");
autoload ("qrshift", "qr.oct");
autoload ("qrupdate", "qr.oct");
endscript;
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41202>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on',
Michael C. Grant <=
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Michael C. Grant, 2014/01/10
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Rik, 2014/01/10
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Rik, 2014/01/10
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Michael C. Grant, 2014/01/10
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Rik, 2014/01/10
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Rik, 2014/01/11
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Rik, 2014/01/11
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', John W. Eaton, 2014/01/11
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Michael C. Grant, 2014/01/11
- [Octave-bug-tracker] [bug #41202] Spurious output when path() called with 'echo on', Michael C. Grant, 2014/01/11