echo $HOME returns /cygdrive/c/documents and setting/mrane
Reini Urban
rurban@x-ray.at
Thu May 6 10:02:00 GMT 2004
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/
More information about the Cygwin
mailing list