Oliver Lupton <[EMAIL PROTECTED]> said on Wed, 15 Feb 2006 16:20:55 +0000: > --Sig_vfNrq=Y2HfpoNPqYUWCRL9. > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: quoted-printable > > 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: > >=20 > > ESC[0mESC[0mAcro3nKTzaESC[0m > > ESC[0mfilelist.logESC[0m ... > > ESC[m > > ... > >=20 > > 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. > >=20 > > Cheers, > > Ivan > > I believe you're just seeing the colour codes for ls's beautiful output. > Passing --color=3Dnever 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 script= > s), at least that's how it is here.
It /should/ be aliased to --color=auto: /etc/skel/.bashrc: alias ls='ls --color=auto' This is so that ls can detect whethr you are piping to a file or to the terminal. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]