Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cygwin HOME directory on Win XP

1 view
Skip to first unread message

argh...@gmail.com

unread,
Jun 20, 2006, 4:51:47 PM6/20/06
to
Hi all,

Sorry for the repeat post (there are other questions that sort of
address this) but I could use someone who has experience here. I have
Cygwin installed on my Windows XP workstation (laptop actually). My
(Win XP) HOMEDRIVE environment variable is set to C: and my HOMEPATH is
"\Documents and Settings\agherna.UIUC". Whenever I lauch Cygwin (usu.
through 'bash --login -i'), Cygwin thinks my HOME directory should be
set to /usr/bin"C:/Documents and Settings/agherna.UIUC". Any ideas as
to why /usr/bin is pre-pended to the HOME?? If I could get around
that, I think I can fix whatever else is wrong using other information.
Any help is appreciated. Thanks in advance

Andy
argh...@gmail.com
agh...@uiuc.edu

Clifford Heath

unread,
Jun 20, 2006, 8:32:19 PM6/20/06
to
argh...@gmail.com wrote:
> Cygwin installed on my Windows XP workstation (laptop actually). My
> (Win XP) HOMEDRIVE environment variable is set to C: and my HOMEPATH is
> "\Documents and Settings\agherna.UIUC". Whenever I lauch Cygwin (usu.
> through 'bash --login -i'), Cygwin thinks my HOME directory should be
> set to /usr/bin"C:/Documents and Settings/agherna.UIUC". Any ideas as
> to why /usr/bin is pre-pended to the HOME?? If I could get around
> that, I think I can fix whatever else is wrong using other information.
> Any help is appreciated. Thanks in advance

No idea, but what I always do with cygwin is to set HOME in my
environment to point to C:\Documents and Settings\cjh\My Documents
That makes bash start in your My Documents directory. It seems
really pointless of cygwin to create a home directory of its own
instead of using the user's My Documents.

I also delete the stupid "bash" icon and make a direct shortcut to
"bash.exe --login -i", which avoids the question when you exit from
bash. Copy the icon from the desktop to the quick-start bar.

Clifford Heath.

argh...@gmail.com

unread,
Jun 20, 2006, 11:19:00 PM6/20/06
to

Clifford Heath wrote:
> argh...@gmail.com wrote:
> > Cygwin installed on my Windows XP workstation (laptop actually). My
> > (Win XP) HOMEDRIVE environment variable is set to C: and my HOMEPATH is
> > "\Documents and Settings\agherna.UIUC". Whenever I lauch Cygwin (usu.
> > through 'bash --login -i'), Cygwin thinks my HOME directory should be
> > set to /usr/bin"C:/Documents and Settings/agherna.UIUC". Any ideas as
> > to why /usr/bin is pre-pended to the HOME?? If I could get around
> > that, I think I can fix whatever else is wrong using other information.
> > Any help is appreciated. Thanks in advance
>
> No idea, but what I always do with cygwin is to set HOME in my
> environment to point to C:\Documents and Settings\cjh\My Documents
> That makes bash start in your My Documents directory. It seems
> really pointless of cygwin to create a home directory of its own
> instead of using the user's My Documents.

I think my problem has to do with having the . in my user id
(agherna.UIUC). It's this way because I have 2 ids on my machine: one
is agherna that's for the local machine and the other is part of the
UIUC domain. Has anyone been able to find a way to cope with the . in
the user id?

David Hearn

unread,
Jun 21, 2006, 6:24:34 AM6/21/06
to

I have a . in my username (login name.domain) and Cygwin works fine. I
start it with the shortcut in my Start menu, which runs cygwin.bat.
I've not touched anything - was set up that way by Cygwin installer.
Contents of this file are:

@echo off

C:
chdir C:\cygwin\bin

bash --login -i


When I start Cygwin I am in folder ~, which when doing pwd, shows:

David Hearn@<machine-name> ~
$ pwd
/cygdrive/c/Documents and Settings/David Hearn.<domain>

D

medenes

unread,
Jun 21, 2006, 7:37:43 AM6/21/06
to

If I understood your problem ...
I have set HOME user variable in system Environment Variables to
%USERPROFILE%
Try it :)

--
pozdrawiam serdecznie
medenes

medenes

unread,
Jun 21, 2006, 7:39:04 AM6/21/06
to

> --
> pozdrawiam serdecznie
> medenes
>

Ups ... sorry


--
Regards from Poland
medenes

argh...@gmail.com

unread,
Jun 21, 2006, 9:51:04 AM6/21/06
to
Could you post your entry from your /etc/passwd file (or send it to
me)?

argh...@gmail.com

unread,
Jun 21, 2006, 10:09:13 AM6/21/06
to

medenes wrote:
> If I understood your problem ...
> I have set HOME user variable in system Environment Variables to
> %USERPROFILE%
> Try it :)
>

Ok, that seemed to help, but I also noticed that my %HOME% environment
variable was surrounded by quotes. Removing those corrected the
problem. Thank you one and all for your help.

> --
> pozdrawiam serdecznie
> medenes

0 new messages