Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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\)" To: "Philippe Bastiani" , Subject: RE: ls - novice question Date: Tue, 16 Sep 2003 21:37:11 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal In-Reply-To: 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/