"octave -q script.m > a_file" creates an extra character
etienne at isr.ist.utl.pt
etienne at isr.ist.utl.pt
Sat Jul 11 18:28:11 CDT 2009
Hi All,
not reproducible for me (Octave 3.0.3, Linux 2.6.18 CentOS) :
[etienne at pastis TyzxGLModif] cat > script.m
1;
printf("A line");
[etienne at pastis TyzxGLModif] octave -q script.m > a_file
[etienne at pastis TyzxGLModif] cat a_file
A line[etienne at pastis TyzxGLModif] od -bc a_file
0000000 101 040 154 151 156 145
A l i n e
0000006
[etienne at pastis TyzxGLModif] octave --version
GNU Octave, version 3.0.3
Copyright (C) 2008 John W. Eaton and others.
[snip]
[etienne at pastis TyzxGLModif] uname -a
Linux pastis 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:39:21 EDT 2009
i686 i686 i386 GNU/Linux
Quoting Alexandros Droseltis <ml-octave at alex-droseltis.com> (Sat, 11
Jul 2009 15:25:25 +0200):
> Hello!
>
> [Using octave 3.0.0 on linux]
>
> I have the following problem. Consider the file script.m with the
> content:
>
> #################
> 1;
>
> printf("A line");
> #################
>
> After typing
>
> octave -q script.m > a_file
>
> in the command line and viewing the file "a_file" _with an editor_, a
> strange string appears at the beginning of the file:
>
> ^[[?1034hA line
>
> Why does this happen and how could I get rid of this? I would be
> grateful for any help.
>
> Best Regards
>
> Alexandros
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
--
http://www.isr.ist.utl.pt/~etienne
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Help-octave
mailing list