Mail Archives: cygwin/2012/02/16/17:22:43
--0IvGJv3f9h+YhkrH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Feb 16, 2012 at 09:46:46PM +0100, Peter Rosin wrote:
> David Sastre Medina skrev 2012-02-16 21:05:
> As I understand it, base-files contains the file
> /etc/defaults/etc/skel/.bash_profile.
> At installation, /etc/postinstall/base-files.sh copies that to
> /etc/skel/.bash_profile, if it that file doesn't exist already.
> Then at uninstall, if /etc/preremove/base-files.sh finds that
> /etc/skel/.bash_profile is not changed, it is removed (so that
> an updated package feels free to copy over the new version).
>=20
> Further, when a user *first* logs in, /etc/skel/.bash_profile
> is copied to ~/.bash_profile by the /etc/profile script. At no
> other point are files in ~ modified, as I understand it. The
> way I read your explanation above, you are implying that your
> ~/.bash_profile is updated along with /etc/skel/.bash_profile,
> and I simply fail to see where that is happening. It is also
> counter to the message from /etc/profile (also quoted by Mike):
>=20
> Copying skeleton files.
> These files are for the users to personalise their cygwin experience.
>=20
> They will never be overwritten nor automatically updated.
This describes the whole process accurately.
> I.e. my /etc/skel/.bash_profile is version 4.0-9 as I expect,
> but my ~/.bash_profile is the old 4.0-6 version from when I
> first logged in, and I see no code anywhere that checks if
> ~/.bash_profile matches /etc/skel/.bash_profile and updates
> if it is pristine.
> So, the question remains, why is your
> ~/.bash_profile updated when you upgrade the base-files package?
It is not.
I re-read the whole thread and found where I lead to you assume that:
In http://cygwin.com/ml/cygwin/2012-02/msg00477.html
I wrote: "Probably you have a customized ~/.bash_profile, so updating to
base-files-4.0-9 didn't replace it."
But I meant: "Probably you have a customized (/etc/skel/).bash_profile, so =
updating
to base-files-4.0-9 didn't replace it."
That alone lead to the rest of the mess. Sorry.
You need to manually apply changes that happen in skeletal files onto
your $HOME if you want them.
Also, it should have been explicitly emphasized that, for users in your sit=
uation
(windows system locale in language A, but user-defined preference to lang B=
),
a manual change was needed to preserve such config.
--=20
Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56
--0IvGJv3f9h+YhkrH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iF4EAREIAAYFAk89gXoACgkQ95urBFKZ7FZ8VAD+OoHtG84xl0uhZuYaMBLR6X5H
sTksR5eMBMsFv7BIt6oA/1uBF6xCPhU/0jGSCkipe2CrXLg408feA9iK+0OASFnl
=Q65Z
-----END PGP SIGNATURE-----
--0IvGJv3f9h+YhkrH--
- Raw text -