From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27007 invoked by alias); 6 May 2004 17:39:16 -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 26999 invoked from network); 6 May 2004 17:39:15 -0000 Received: from unknown (HELO hornet.mur.at) (193.171.120.12) by sources.redhat.com with SMTP; 6 May 2004 17:39:15 -0000 Received: by hornet.mur.at (Postfix, from userid 1258) id D3534181D8; Thu, 6 May 2004 19:39:14 +0200 (CEST) Received: from x-ray.at (RAH-KO.mur.at [193.171.120.202]) by hornet.mur.at (Postfix) with ESMTP id 7A03E181B6 for ; Thu, 6 May 2004 19:39:09 +0200 (CEST) Message-ID: <409A78A8.8000508@x-ray.at> Date: Thu, 06 May 2004 17:47:00 -0000 From: Reini Urban User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7b) Gecko/20040421 MultiZilla/1.5.0.4h MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: echo $HOME returns /cygdrive/c/documents and setting/mrane References: <4099FBD9.6060408@x-ray.at> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hornet.mur.at X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-IsSubscribed: yes X-SW-Source: 2004-05/txt/msg00239.txt.bz2 Igor Pechtchanski schrieb: > 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... Sure, mount is the method which is used more often. And it is faster and easier. But it is not as transparent to the poor end-user as the symlinks. He will not see /home when doing "ls /" And with HOME = C:/Dokumente\ und\ Einstellungen/Someuser/Eigene\ Dateien it's much easier to administrate with symlinks also. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- 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/