delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/06/09:25:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 6 May 2004 09:25:34 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Reini Urban <rurban AT x-ray DOT at>
cc: cygwin AT cygwin DOT com
Subject: Re: echo $HOME returns /cygdrive/c/documents and setting/mrane
In-Reply-To: <4099FBD9.6060408@x-ray.at>
Message-ID: <Pine.GSO.4.56.0405060923290.1835@slinky.cs.nyu.edu>
References: <loom DOT 20040506T002755-200 AT post DOT gmane DOT org> <4099FBD9 DOT 6060408 AT x-ray DOT at>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

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 AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019