From: Reini Urban <rurban@x-ray.at>
To: cygwin@cygwin.com
Subject: Re: echo $HOME returns /cygdrive/c/documents and setting/mrane
Date: Thu, 06 May 2004 10:02:00 -0000 [thread overview]
Message-ID: <4099FBD9.6060408@x-ray.at> (raw)
In-Reply-To: <loom.20040506T002755-200@post.gmane.org>
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/
next prev parent reply other threads:[~2004-05-06 8:46 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 [this message]
2004-05-06 13:27 ` Igor Pechtchanski
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=4099FBD9.6060408@x-ray.at \
--to=rurban@x-ray.at \
--cc=cygwin@cygwin.com \
/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).