[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] cpio people?



On 20-Apr-03 Chris J wrote:
> And Lo! The Great Prophet "Chris J" uttered these words of wisdom:
>> 'ello ... 
>> Is there anyone that uses cpio and knows enough about it to answer a
>> quirk? 
>> Google so far hasn't helped :)
> 
> ...scrub that; I've found the problem. Having an alias of "ls --color"
> for ls, thus causing every line output to have a chunk of escape
> sequences to set the colour for the line (even though there was no
> colour to set, and  all it was doing was ESC[0m to swtich colour
> attributes off), causing cpio  to look for files named
> "ESC[0mrrn.123456.1ESC[0m".

That's a subtle one! Oh welcome excuse for paranoia!

> Insight provided by running hexdump over the ls output and me going
> "doh".
> 
> Alias since changed to ls --color=auto ... should mean I don't get
> tripped up it again.

Seems --color=tty also works, though not documented in 'man ls'.
See also $LS_OPTIONS.

Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding [at] nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 20-Apr-03                                       Time: 21:34:00
------------------------------ XFMail ------------------------------
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.