This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: ls - novice question
- From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector at telia dot com>
- To: "Philippe Bastiani" <philippe dot bastiani at wanadoo dot fr>, <cygwin at cygwin dot com>
- Date: Tue, 16 Sep 2003 21:37:11 +0200
- Subject: 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/