Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe02.iad.POSTED!00000000!not-for-mail
From: Doug Schwarz <see@sig.for.address.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: ls problem with matlab 2009a in ubuntu
References: <iubk50$g2i$1@newscl01ah.mathworks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
User-Agent: MT-NewsWatcher/3.5.2 (Intel Mac OS X)
Message-ID: <see-F425FC.07370628062011@news.frontiernet.net>
Lines: 33
X-Complaints-To: abuse-news@frontiernet.net
NNTP-Posting-Date: Tue, 28 Jun 2011 11:37:08 UTC
Organization: Frontier
Date: Tue, 28 Jun 2011 07:37:07 -0400
Xref: news.mathworks.com comp.soft-sys.matlab:734004

In article <iubk50$g2i$1@newscl01ah.mathworks.com>,
 "David Zhang" <solarbikedz@gmail.com> wrote:

> I've installed matlab 2009a on my ubuntu 10.04 box.  Everything works great, 
> except with the annoying problem where if I type the command "ls" to show the 
> current directory, the results contains strange characters in addition to the 
> file names.  For example, in my home folder:
> >> ls
> bin  Desktop  Documents  
> [01;34mDownloads  finance  Music  
> [01;34mPictures  Public  Templates  
> [01;34mVideos
> 
> Repeating the same thing by explicitly invoking the unix command "!ls" gives 
> the same problem, which suggests there is some sort of communication problem 
> between matlab and unix.  Running the same matlab in terminal and I don't 
> have this issue.
> 
> Some might say "why don't you just navigate using directory window?"  Well, I 
> could.  However being with Linux for so long, moving through directories 
> using command line is much faster and more comfortable for me.  Although this 
> is not a serious problem, it is annoying enough that it stains an otherwise 
> beautiful installation of matlab on ubuntu.

Those are ANSI escape sequences.  <escape>[0m turns all attributes off, 
<escape>[01;34m makes the text bold with a blue background.  You must 
have ls configured to use color by default, perhaps with the environment 
variable CLICOLOR.  See the man page for ls for more info.

-- 
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.