delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/26/21:19:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_40
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4C9FF0FF.3080506@cygwin.com>
Date: Sun, 26 Sep 2010 21:18:55 -0400
From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: My bash shell suddenly has "X-ray vision"
References: <4C9EA18E DOT 4060903 AT charter DOT net>
In-Reply-To: <4C9EA18E.4060903@charter.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On 9/25/2010 9:27 PM, SJ Wright wrote:
> Or is it just the difference in encodings?
>
> In scripts and config/convenience files like .bashrc or .bash_aliases, it can
>  see *through* "crunches" (#), which are supposed to make a line of text
> invisible to a shell <or am I wrong on that?>
>
> Could it be because I added a LANG variable and have been turning out
> not-quite-UTF-8 stuff from my one or two text editors? The only guess I can
> make with my limited knowledge is that, once UTF8 is set or enabled,
> ISO-8859-1 "crunches," for all practical purposes, are meaningless to the
> shell. or am I wrong on that as well?
>
> A little help, please. This isn't making a whole lot of sense. What good are
>  rules for comments if, when a new text encoding or environment variable is
> applied/undertaken/invoked, they become null and void? (Might as well go back
> to REM: from CLI BASIC.)

I suggest you run 'd2u' on the files and see if that helps.  If it does, you
know that some editing you did on those files introduced DOS/Windows line
endings.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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

- Raw text -


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