delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/16/15:38:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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>
Subject: RE: ls - novice question
Date: Tue, 16 Sep 2003 21:37:11 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEAEDADEAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
In-Reply-To: <bk7h3v$aqo$1@sea.gmane.org>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019