public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
To: Reini Urban <rurban@x-ray.at>
Cc: cygwin@cygwin.com
Subject: Re: echo $HOME returns /cygdrive/c/documents and setting/mrane
Date: Thu, 06 May 2004 13:27:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.56.0405060923290.1835@slinky.cs.nyu.edu> (raw)
In-Reply-To: <4099FBD9.6060408@x-ray.at>

On Thu, 6 May 2004, Reini Urban wrote:

> Montana Rane schrieb:
> > for the administrative user, under which cygwin was installed, echo $HOME
> > returns /home/Administrator.
>
> This is not your problem. Please describe the problem in the message
> body and not only in the subject.
>
> > I need to set up cygwin so it does not preface the path with /cygdrive/c as
> > this breaks our existing scripts.
>
> You scripts most likely don't brake because of the /cygdrive/c/ prefix,
> they break because of the space in the pathname.
>
> Solution:
> Link it under your cygwin tree and fix the appropriate passwd entries.
>
> untested script to get the idea:
> mkdir /home
> for h in /cygdrive/c/documents\ and\ setting/*; do
>    ln -s /cygdrive/c/documents\ and\ setting/$h /home/
                                               ^^
Missing quotes here.  Should be "$h".

> done
> perl -pi.bak -e's|/cygdrive/c/documents and setting/|/home/|' \
>       /etc/passwd

Or 'mount -s c:/Documents\ and\ Settings/ /home', if you don't mind
putting up with '/home/All Users', etc...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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

  reply	other threads:[~2004-05-06 13:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-05 22:41 Montana Rane
2004-05-06  1:18 ` Larry Hall
2004-05-06 10:02 ` Reini Urban
2004-05-06 13:27   ` Igor Pechtchanski [this message]
2004-05-06 17:47     ` Reini Urban
2004-05-06 20:19       ` Hannu E K Nevalainen
2004-05-07 17:10       ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.56.0405060923290.1835@slinky.cs.nyu.edu \
    --to=pechtcha@cs.nyu.edu \
    --cc=cygwin@cygwin.com \
    --cc=rurban@x-ray.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).