This is the mail archive of the
mailing list for the Cygwin project.
Re: Patch to /etc/profile to deal with $HOME with a space
- From: "John Morrison" <john at morrison dot mine dot nu>
- To: cygwin at cygwin dot com
- Date: Wed, 1 Dec 2004 09:07:52 -0000 (GMT)
- Subject: Re: Patch to /etc/profile to deal with $HOME with a space
- References: <Pine.GSO.4.58.0411301227340.2020@orne> <email@example.com> <20041130195742.GC9610@trixie.casa.cgf.cx>
> On Tue, Nov 30, 2004 at 07:33:02PM -0000, John Morrison wrote:
>>> I have just set up Cygwin, and noticed that my default home was under
>>> "Documents and Settings" directory (not yet having run mkpasswd).
>>> the /etc/profile setup which tries to only create the warning message
>>> about running mkpasswd and mkgroup once can't deal with a HOME
>>> variable with a space in it. Here is a patch to allow that to work:
>>I'm away on a course at the moment and don't have access to the machine
>>with the files I use to generate the package. I'll be back home on
>>Friday, I'll try and get something out over the weekend or by mid-week at
> Since this has been a persistent problem, pretty much since the inception
> of base-files, can I request that you do an audit of everything in base
> and quote all unquoted access to environment variables in the package?
> It seems like we just keep running across these problems in bits and
> pieces and
> maybe it's time for a concerted effort to wipe these types of problems
I did consider changing /etc/postinstall/passwd-grp.sh so that instead of
/bin/mkpasswd -l -c > /etc/passwd
mkpasswd.exe -l -c | sed 's/cygdrive\/.*Documents and Settings/home/' >
The reason the 'Doc and Settings' directory is appearing is because these
people are networked based and the flags to mkpasswd tell it to only check
the local machine. It was talked about passing in the domain flag, but
ruled out because of the amount of time it would take if there were lots
of users or it was unable to contact a default domain (there may have been
other issues too, but they were the only ones I can remember).
Think it's worth it?
Anyway, I'll fix the profile quotes soonest.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html