* echo $HOME returns /cygdrive/c/documents and setting/mrane @ 2004-05-05 22:41 Montana Rane 2004-05-06 1:18 ` Larry Hall 2004-05-06 10:02 ` Reini Urban 0 siblings, 2 replies; 7+ messages in thread From: Montana Rane @ 2004-05-05 22:41 UTC (permalink / raw) To: cygwin for the administrative user, under which cygwin was installed, echo $HOME returns /home/Administrator. I need to set up cygwin so it does not preface the path with /cygdrive/c as this breaks our existing scripts. Thanks, Montana Rane -- 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: echo $HOME returns /cygdrive/c/documents and setting/mrane 2004-05-05 22:41 echo $HOME returns /cygdrive/c/documents and setting/mrane Montana Rane @ 2004-05-06 1:18 ` Larry Hall 2004-05-06 10:02 ` Reini Urban 1 sibling, 0 replies; 7+ messages in thread From: Larry Hall @ 2004-05-06 1:18 UTC (permalink / raw) To: Montana Rane, cygwin At 06:33 PM 5/5/2004, you wrote: >for the administrative user, under which cygwin was installed, echo $HOME >returns /home/Administrator. > >I need to set up cygwin so it does not preface the path with /cygdrive/c as >this breaks our existing scripts. OK, let's start here: >Problem reports: http://cygwin.com/problems.html Based on a full description of your problem and the proper base-line information, someone here can attempt to help. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: echo $HOME returns /cygdrive/c/documents and setting/mrane 2004-05-05 22:41 echo $HOME returns /cygdrive/c/documents and setting/mrane Montana Rane 2004-05-06 1:18 ` Larry Hall @ 2004-05-06 10:02 ` Reini Urban 2004-05-06 13:27 ` Igor Pechtchanski 1 sibling, 1 reply; 7+ messages in thread From: Reini Urban @ 2004-05-06 10:02 UTC (permalink / raw) To: cygwin 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: echo $HOME returns /cygdrive/c/documents and setting/mrane 2004-05-06 10:02 ` Reini Urban @ 2004-05-06 13:27 ` Igor Pechtchanski 2004-05-06 17:47 ` Reini Urban 0 siblings, 1 reply; 7+ messages in thread From: Igor Pechtchanski @ 2004-05-06 13:27 UTC (permalink / raw) To: Reini Urban; +Cc: cygwin 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: echo $HOME returns /cygdrive/c/documents and setting/mrane 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 0 siblings, 2 replies; 7+ messages in thread From: Reini Urban @ 2004-05-06 17:47 UTC (permalink / raw) To: cygwin 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: echo $HOME returns /cygdrive/c/documents and setting/mrane 2004-05-06 17:47 ` Reini Urban @ 2004-05-06 20:19 ` Hannu E K Nevalainen 2004-05-07 17:10 ` Christopher Faylor 1 sibling, 0 replies; 7+ messages in thread From: Hannu E K Nevalainen @ 2004-05-06 20:19 UTC (permalink / raw) To: ML CygWIN > From: Reini Urban > Sent: Thursday, May 06, 2004 7:41 PM > Igor Pechtchanski schrieb: > > 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 /" YET another POV (YAPOV!); To be "safe" (THIS IS UNTESTED! BEWARE ;-) with one little difference... $ cd /home $ tar --create --remove-files - * | \ tar --directory="$(cygpath -u -H)" --extract - $ mount "$(cygpath -w -H)" /home i.e. what I've attempted to describe here is, line by line: 1 - work from any existing "/home" (assumes "/home/" exists!) 2 - move any files to the new position 3 - reposition /home NOTE for the diff: leave /home/ as an empty directory, thus it WILL show up with "ls" and in name completions (will work for anything *in* /home too) and whatever you try... /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- -- 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: echo $HOME returns /cygdrive/c/documents and setting/mrane 2004-05-06 17:47 ` Reini Urban 2004-05-06 20:19 ` Hannu E K Nevalainen @ 2004-05-07 17:10 ` Christopher Faylor 1 sibling, 0 replies; 7+ messages in thread From: Christopher Faylor @ 2004-05-07 17:10 UTC (permalink / raw) To: cygwin On Thu, May 06, 2004 at 07:40:56PM +0200, Reini Urban wrote: >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 /" mkdir /home mount -b "C:/Documents and Settings" /home Either that or: mkdir /cygdrive/c/cygwin/home if you have already executed the mount. Then "ls /" shows the home directory. This is, IMO, closer to the UNIX way of doing things than using a symlink. cgf -- 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-05-07 17:06 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-05-05 22:41 echo $HOME returns /cygdrive/c/documents and setting/mrane Montana Rane 2004-05-06 1:18 ` Larry Hall 2004-05-06 10:02 ` Reini Urban 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
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).