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. Cheers, Oliver -- I will live for never, or live failing.
signature.asc
Description: PGP signature