delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/19/18:38:16

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: <71A0F7B0F1F4F94F85F3D64C4BD0CCFE05A0400F@bmkc1svmail01.am.mfg>
From: "Parker, Ron" <rdparker AT butlermfg DOT com>
To: cygwin AT cygwin DOT com
Subject: Strange symlink and mv interaction
Date: Thu, 19 Feb 2004 17:32:41 -0600
MIME-Version: 1.0
X-IsSubscribed: yes

From inside of ~/src/myprojects I did a:

	mv -- --1.2 ~/tla--escapes--1.2

where "--1.2" was a directory in ~/src/myprojects.  This did not move
~/src/myprojects/--1.2 to ~/src/tla--escapes--1.2.  What it did do was move
it to /cygdrive/c/tla--escapes--1.2.  Here are the pertinent paths:

/			is a binary system mount of	C:\cygwin
/c			is a binary system mount of	C:\
/home			is a binary system mount of	C:\home
~			is
/home/rdparker
~/src 		is a directory,			/home/rdparker/src
~/src/myprojects	is a symlink to			/c/MyProjects

The symlink is just intended to graft my Windows source into my preferred
~/src working location for use with reasonable tools.

It appears that when mv did a ".." from ~/src/myprojects, it actually did a
.. from /c/MyProjects not from ~/src/myprojects.  Is this the expected
behavior?  I don't have a *nix system handy to check out how .. works with
symlinked directories.  I left my laptop at home today and my wife shut off
my ssh box at home because the fan was scaring her rabbit.  (Hmm... how do
small pets respond to contact with an Athlon?  I smell hasenpfeffer.  Sorry
PETA, it's been a _long_ day.)

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019