delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/05/15:52:03

X-Spam-Check-By: sourceware.org
Message-ID: <c0ac9a780610051251u1a2c9f9ex199820f8724bc039@mail.gmail.com>
Date: Thu, 5 Oct 2006 15:51:36 -0400
From: "Doug Harris" <dharris AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Fixing /etc/profile
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

I updated cygwin today and got to enjoy the fun of my shell no longer
working. Fortunately for my backside, I did search the mailing list
archive and found the answer required either setting a shopt or
modifying some CR/LF to just LF. No big deal.

The big deal, in my eyes, is that the one of the files that I had to
fix was /etc/profile. The timestamp on this file (prior to my fix) was
May 11, 2004 -- that would be the day I first installed cygwin on this
computer. I have not modified this from the original version.

Wouldn't it make sense that the default /etc/profile would work
out-of-the-box with the default bash installation?

Doug

p.s. A few quick helpful tips for people who are looking to fix their
own /etc/profile (and other files):

* The "file" command includes in its output "CRLF line terminators"
for files that have that
* "d2c /etc/profile" will quickly change the line endings in place.
Replace with other file names to fix those.
* Don't forget to check .bash_profile, .bashrc, etc
cd; file .bash* | grep "CRLF line terminators"

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