delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/16/06:15:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4F3CE52C.70409@gmail.com>
Date: Thu, 16 Feb 2012 22:14:52 +1100
From: Mike Kaganski <mikekaganski AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: base-files 4.0-9: LANG is set to the system default, why not the user selection?
References: <4F3BBA41 DOT 6050800 AT lysator DOT liu DOT se> <CAHWeT-YdkjH1dRwS+GuTmzoP7QO2P1w1Jr_tBNkj3224P--axQ AT mail DOT gmail DOT com> <20120215221458 DOT GA6842 AT jethro DOT local DOT lan> <4F3C99B2 DOT 9000507 AT lysator DOT liu DOT se> <4F3CD659 DOT 7070109 AT lysator DOT liu DOT se>
In-Reply-To: <4F3CD659.7070109@lysator.liu.se>
X-IsSubscribed: yes
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
Note-from-DJ: This may be spam

16.02.2012 21:11, Peter Rosin пишет:
> Peter Rosin skrev 2012-02-16 06:52:
>> David Sastre Medina skrev 2012-02-15 23:14:
>>> The files under /etc/profile.d are sourced by /etc/profile, which sets
>>> system wide settings.
>>> For user-defined values, the place to override a system-wide setting
>>> depends on the shell you're using. E.g., for bash, it would be
>>> ~/.bash_profile. Check /etc/skel/.bash_profile. It should include
>>> these lines:
>>>
>>> # Set user-defined locale
>>> export LANG=$(locale -uU)
>>>
>>> Probably you have a customized ~/.bash_profile, so updating to
>>> base-files-4.0-9 didn't replace it.
>>>
>> Hmmm, ok, that doesn't completely match what I'm seeing in my $HOME, my
>> .bash_profile *looks* (who am I to tell, it's attached) unmodified from
>> 4.0-6, so just a quick question, what postinstall script is responsible
>> for moving the updated skel files into $HOME?  I couldn't find any, but
>> admittedly didn't spend much time looking...
> I located base-files-4.0-6.tar.bz2 and my copy in $HOME is indeed not
> modified.  So, your assertion that customization was preventing the
> update seems wrong (the date of my .bash_profile is consistent with my
> original Cygwin installation date).  I question whether the skel files
> are automatically copied to the home directory at any other time than
> at home directory creation.  Are they?
>
> Cheers,
> Peter
>
> PS. I have modified ~/.bashrc and ~/.inputrc, if that is relevant.

/etc/defaults/etc/profile is what creates home directory. When executed 
for the first time for a user, it outputs to the console:

Copying skeleton files.
These files are for the users to personalise their cygwin experience.

They will never be overwritten nor automatically updated.

Just pay attention to what is told :)

--
Best regards, Mike.

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