ls - novice question

Hannu E K Nevalainen (garbage mail) garbage_collector@telia.com
Tue Sep 16 19:38:00 GMT 2003


> From: Philippe Bastiani

> Hi,
>
> Why need to use the '--show-control-chars' option of the 'ls' module to
> display the accentuated characters ?

 Ask that in any linux/unix/bash/fileutils forum - it's off topic here.
I've been there wondering too, but not bothered to ask.

 This is just one issue with eight-bit clean output within bash and its
siblings. Not to mention that many applications (e.g. emacs, vim ...) need
their own tweakin'.

The "fix" is to include something like whats below into e.g. ~/.profile
This replaces ls.exe with a bash "function" that will execute ls.exe adding
any options you add/remove.

If you by chance would need to run the basic ls.exe when this has been
installed, you can use "command ls" at the prompt.


/Hannu E K Nevalainen, B.Sc. EE - 59°16.37'N, 17°12.60'E
-- UTC+1, GMT+1, CET --


# -----------------------
#  -- shell functions --
# -----------------------
ls () {
 command ls                     \
        --show-control-chars    \
        --color                 \
        --classify              \
        --no-group              \
        -k                      \
        $@;
 }


--END OF MESSAGE--


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list