help-octave
[Top][All Lists]
Advanced

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

How to eliminate "+ endscript;" when "echo on" is in .octaverc?


From: Peng Yu
Subject: How to eliminate "+ endscript;" when "echo on" is in .octaverc?
Date: Fri, 31 May 2013 21:16:32 -0500

Hi,

I have the following .octaverc and octave script. I want to just show
commands and the outputs. But it shows things like "+ endscript;" and
"+ ##!/usr/bin/env octave -q". Is there a way to eliminate them in
octave? Thanks.

~/linux/test/octave/octave/lang/function/echo/off$ cat ~/.octaverc
edit mode async
edit editor "gvim %s"
echo on
~/linux/test/octave/octave/lang/function/echo/off$ cat main.m
#!/usr/bin/env octave -q

echo off
disp('Hello World!')

~/linux/test/octave/octave/lang/function/echo/off$ ./main.m
+ endscript;
+ ##!/usr/bin/env octave -q
+ echo ('off')
Hello World!

-- 
Regards,
Peng


reply via email to

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