delorie.com/archives/browse.cgi | search |
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 |
Message-ID: | <4099FBD9.6060408@x-ray.at> |
Date: | Thu, 06 May 2004 10:48:25 +0200 |
From: | Reini Urban <rurban AT x-ray DOT at> |
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 AT cygwin DOT com |
Subject: | Re: echo $HOME returns /cygdrive/c/documents and setting/mrane |
References: | <loom DOT 20040506T002755-200 AT post DOT gmane DOT org> |
In-Reply-To: | <loom.20040506T002755-200@post.gmane.org> |
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 |
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/ done perl -pi.bak -e's|/cygdrive/c/documents and setting/|/home/|' \ /etc/passwd -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |