delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/03/10:44:17

X-Spam-Check-By: sourceware.org
Date: Tue, 3 Oct 2006 10:44:01 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: updated bash to latest 3.1.17(8)-release; startup has errors now
In-Reply-To: <45226750.9090909@cygwin.com>
Message-ID: <Pine.GSO.4.63.0610031033280.23682@access1.cims.nyu.edu>
References: <31b7d2790610021512m6093d076i6609b5fc21c55030 AT mail DOT gmail DOT com> <45219876 DOT 40465402 AT dessent DOT net> <20061002230357 DOT GD2949 AT trixie DOT casa DOT cgf DOT cx> <4521A351 DOT 9090906 AT gmail DOT com> <31b7d2790610022224o7db4dc45pea5f4a63cb62dde6 AT mail DOT gmail DOT com> <45226750 DOT 9090909 AT cygwin DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Tue, 3 Oct 2006, Larry Hall (Cygwin) wrote:

> On 10/03/2006, DePriest, Jason R. wrote:
>
> <snip>
>
> > vi did not show any unusual line endings (CR/LF) in /etc/profile
> > before I sent my message in
>
> vi/vim will only show you the CR/LF if you tell it to.  So if you're
> not looking for them, vi/vim may have hidden them from you.  You may
> want to try 'od -c' on the file(s) in question.

Since many people mentioned that they opened the files in question in vim
and did not see unusual line endings, here's some non-Cygwin-specific, but
relevant, vim info:

By default, when vim loads the file in which *all* line endings are CR/LF,
it will display the file normally, but show "[dos]" in the status line.
It's easy to miss if you're not watching for it.  That property can also
be queried using "set fileformat?".

This behavior can be turned off globally by "set fileformats=unix".

Alternatively, "vi -b myfile" will open myfile in binary mode, and will
display all CR/LF line endings.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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