maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   LS support --color (https://talk.maemo.org/showthread.php?t=35512)

les_garten 2009-11-30 23:11

LS support --color
 
Does the ls in Busybox on the N900 support colorizing? It doesn't like it when I pass it the --color=auto option?

qole 2009-12-01 00:01

Re: LS support --color
 
I don't know myself, but I found some interesting results entering "busybox color" into Google. I'd tell you more, but....

les_garten 2009-12-01 00:09

Re: LS support --color
 
Quote:

Originally Posted by qole (Post 401824)
I don't know myself, but I found some interesting results entering "busybox color" into Google. I'd tell you more, but....

Heh, Funny, but not exactly the same thing though is it?

I did search here.

Then Googled as you did.

I used every busybox parameter I could find, thus why I mentioned LS not allowing the --color=auto option.

HoX 2009-12-01 00:12

Re: LS support --color
 
I tried it on my N900 and it doesn't work in Xterm. ls doesn't recognize --color(=auto) option, so I supposed that this functionality is compiled on the busybox

mattmull 2009-12-01 00:20

Re: LS support --color
 
What version of busybox is it? (Probably just busybox --version)

The newer versions of busybox have it, it looks like it just has to be turned on it the config (then recompiled).

config FEATURE_LS_COLOR
bool "Allow use of color to identify file types"
default y
depends on LS && LONG_OPTS
help
This enables the --color option to ls.

les_garten 2009-12-01 00:25

Re: LS support --color
 
Looks like there is a Patch for it, but I'm really not wanting a brick here!

les_garten 2009-12-01 00:26

Re: LS support --color
 
Nokia-N900-42-11:~# uname -a
Linux Nokia-N900-42-11 2.6.28-omap1 #1 PREEMPT Wed Oct 28 15:32:55 EET 2009 armv7l unknown
Nokia-N900-42-11:~# busybox
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) multi-call binary
Copyright (C) 1998-2007 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

qole 2009-12-01 00:29

Re: LS support --color
 
Does anyone see any reason to recommend against installing bash?

mattmull 2009-12-01 00:34

Re: LS support --color
 
It's in 1.10.2:

config FEATURE_LS_COLOR
bool "Allow use of color to identify file types"
default y
depends on LS && GETOPT_LONG
help
This enables the --color option to ls.

It's on by default, so I'm guessing they just disabled it?

I don't have the sdk installed yet, or an n900 yet for that matter, so I'm not sure how much effort it is to rebuild and install busybox. Most of the time reconfiguring it and cross compiling it on a SDK is pretty straight forward.

les_garten 2009-12-01 00:50

Re: LS support --color
 
Quote:

Originally Posted by mattmull (Post 401875)
It's in 1.10.2:

config FEATURE_LS_COLOR
bool "Allow use of color to identify file types"
default y
depends on LS && GETOPT_LONG
help
This enables the --color option to ls.

It's on by default, so I'm guessing they just disabled it?

I don't have the sdk installed yet, or an n900 yet for that matter, so I'm not sure how much effort it is to rebuild and install busybox. Most of the time reconfiguring it and cross compiling it on a SDK is pretty straight forward.

It looks like it may have caused problems on a few Droids and they were turning it off. Like bleeding colors or something.

les_garten 2009-12-01 00:53

Re: LS support --color
 
Quote:

Originally Posted by qole (Post 401865)
Does anyone see any reason to recommend against installing bash?

What chance of bricking do you think?


All times are GMT. The time now is 08:28.

vBulletin® Version 3.8.8