On Wed, 15 Feb 2006 16:20:55 +0000
Oliver Lupton <[EMAIL PROTECTED]> wrote:

> On Wed, 15 Feb 2006 17:09:30 +0100
> Ivan Glushkov <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > if I issue ls . > filelist.txt
> > as user I get:
> > a binary file like:
> > 
> > ESC[0mESC[0mAcro3nKTzaESC[0m
> > ESC[0mfilelist.logESC[0m
> > ESC[01;34mgconfd-glushkovESC[0m
> > ESC[01;34mkde-glushkovESC[0m
> > ESC[01;34mkeyring-CXhOCWESC[0m
> > ESC[01;34mksocket-glushkovESC[0m
> > ESC[01;35mmapping-glushkovESC[0m
> > ESC[01;34morbit-glushkovESC[0m
> > ESC[01;34mssh-mmCRYB8783ESC[0m
> > ESC[01;35mxmms_glushkov.0ESC[0m
> > ESC[0mzmanImD0upESC[0m
> > ESC[m
> > ...
> > 
> > if I do that like root, I get the list of files as expected.
> > What is the difference? Both root and the user are using the same shell.
> > 
> >        Cheers,
> >        Ivan
> 
> I believe you're just seeing the colour codes for ls's beautiful output.
> Passing --color=never to ls should fix it. user's apparently have colours by 
> default and root doesn't (it's an alias in one of the shell init scripts), at 
> least that's how it is here.

Ack! That's why my ls in emacs shell buffer is all messed up. Thanks so much!

A

> 
> Cheers,
> Oliver
> 
> -- 
> I will live for never, or live failing.
> 

Attachment: pgpEa7Iw8OQJI.pgp
Description: PGP signature

Reply via email to