Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    LS support --color

    Reply
    Page 1 of 2 | 1   2   | Next
    les_garten | # 1 | 2009-11-30, 23:11 | Report

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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qole | # 2 | 2009-12-01, 00:01 | Report

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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    les_garten | # 3 | 2009-12-01, 00:09 | Report

    Originally Posted by qole View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    HoX | # 4 | 2009-12-01, 00:12 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mattmull | # 5 | 2009-12-01, 00:20 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by mattmull; 2009-12-01 at 00:27.

     
    les_garten | # 6 | 2009-12-01, 00:25 | Report

    Looks like there is a Patch for it, but I'm really not wanting a brick here!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    les_garten | # 7 | 2009-12-01, 00:26 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qole | # 8 | 2009-12-01, 00:29 | Report

    Does anyone see any reason to recommend against installing bash?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mattmull | # 9 | 2009-12-01, 00:34 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    les_garten | # 10 | 2009-12-01, 00:50 | Report

    Originally Posted by mattmull View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout