This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: ls - novice question


> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]