Skip to Content.
Sympa Menu

baslinux - Re: [BL] Colors in ls - X rxvt/swm xinitrc

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: "David Moberg" <davidjmoberg AT gmail.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Colors in ls - X rxvt/swm xinitrc
  • Date: Mon, 1 Jan 2007 09:59:10 -0800

Lee Forrest wrote:
On Mon, Jan 01, 2007 at 04:14:14PM +0000, sindi keesan wrote:

>> Try the larger (non-busybox) ls, which will work without color.
>> The buxybox one is hardwired to color.

I was afraid of that.

> > ls --color=never

Didn't work.

Try this:

ls -C | cat

This worked on an earlier version of BL3, but Steven upgraded busybox
since then so I'm not sure if it still works. It should unless the
busybox developers changed it. It worked because ls checked if the
output was going to a terminal, and turned color off if it was not.

A script with just the above (and "$@" to add additional arguments)
should be smaller and simpler than the full-size ls.

David




Archive powered by MHonArc 2.6.24.

Top of Page