Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" To: "ML CygWIN" Subject: RE: echo $HOME returns /cygdrive/c/documents and setting/mrane Date: Thu, 6 May 2004 22:18:57 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <409A78A8.8000508@x-ray.at> > 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/