From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 870 invoked by alias); 6 May 2004 13:25:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 839 invoked from network); 6 May 2004 13:25:36 -0000 Received: from unknown (HELO slinky.cs.nyu.edu) (128.122.20.14) by sources.redhat.com with SMTP; 6 May 2004 13:25:36 -0000 Received: from slinky.cs.nyu.edu (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id i46DPZUS018345; Thu, 6 May 2004 09:25:35 -0400 (EDT) Received: from localhost (pechtcha@localhost) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.2/Submit) with ESMTP id i46DPYWr018342; Thu, 6 May 2004 09:25:35 -0400 (EDT) X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 06 May 2004 13:27:00 -0000 From: Igor Pechtchanski Reply-To: cygwin@cygwin.com To: Reini Urban cc: cygwin@cygwin.com Subject: Re: echo $HOME returns /cygdrive/c/documents and setting/mrane In-Reply-To: <4099FBD9.6060408@x-ray.at> Message-ID: References: <4099FBD9.6060408@x-ray.at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 X-SW-Source: 2004-05/txt/msg00225.txt.bz2 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/