Re: CygwinPerl Q - interact with symlinked dir?
- Original Message - From: "Soren Andersen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 02:57 Subject: Re: CygwinPerl Q - interact with symlinked dir? > On 20 Jan 2002 at 19:21, Gerrit P. Haase wrote: > > > Another question: > > > > >So I did this: > > > > > >$ ln -svdnf '/home/sorenboss/.cpan/' ~/.cpan > > >create symbolic link `/cdv/e/home/sorenboss/.cpan' to > > >`/home/sorenboss/.cpan/' > > > > > > > Why didn't you mount this way: > > $ mount -s -b x:/cygwin/home/sorenboss/.cpan \ > > > e:/home/sorenboss/.cpan > > ? > > > > I use always mount for something like this. > > Thanks. Well, it didn't occur to me to do that, is why. I have seldom mounted subdirs to subdirs, > splicing something into the filesystem tree like that, and I think it is because I haven't understood > mount very well, and therefore been nervous about what would happen. This is an area of the Cygwin > documentation that could use some work, IMO. > > [ a little time passes..] > > Looking at it again, I am *seriously* confused about what you are suggesting. I thought -- and I am not > claiming (and have never claimed) to thoroughly understand `mount' -- but I thought that the last arg to > mount had to be a POSIX path?? You seem to be supplying two win32/DOS paths as args to `mount'. > Is this good to do? The second argument should be the POSIX path. So your mount command would be: mount -s -b x:/cygwin/home/sorenboss/.cpan /home/sorenboss/.cpan It might be useful to create an empty directory '/home/sorenboss/.cpan' before the mount. It seems to make umount and some directory searching work better. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: CygwinPerl Q - interact with symlinked dir?
On 20 Jan 2002 at 19:21, Gerrit P. Haase wrote: > Another question: > > >So I did this: > > > >$ ln -svdnf '/home/sorenboss/.cpan/' ~/.cpan > >create symbolic link `/cdv/e/home/sorenboss/.cpan' to > >`/home/sorenboss/.cpan/' > > > > Why didn't you mount this way: > $ mount -s -b x:/cygwin/home/sorenboss/.cpan \ > > e:/home/sorenboss/.cpan > ? > > I use always mount for something like this. Thanks. Well, it didn't occur to me to do that, is why. I have seldom mounted subdirs to subdirs, splicing something into the filesystem tree like that, and I think it is because I haven't understood mount very well, and therefore been nervous about what would happen. This is an area of the Cygwin documentation that could use some work, IMO. [ a little time passes..] Looking at it again, I am *seriously* confused about what you are suggesting. I thought -- and I am not claiming (and have never claimed) to thoroughly understand `mount' -- but I thought that the last arg to mount had to be a POSIX path?? You seem to be supplying two win32/DOS paths as args to `mount'. Is this good to do? Thanks Gerrit! Soren Andersen -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: CygwinPerl Q - interact with symlinked dir?
Am 19 Jan 2002 um 23:51 hat Soren Andersen geschrieben: >My question is: what is Perl going to do when I run an invocation of CPAN? >Is it going to look in "~/.cpan" and if so, will it play nicely with a >symlink and transparently find the existing dirs over on the other logical >volume? Or will it still think that the configuration files are in >"D:\cygwin\home\sorenboss\.cpan" (/home/sorenboss/.cpan)? Well, what are the following commands telling you: $ ls -a ~/ $ ls -a $HOME $ cd && ls -a I guess it will list .cpan too and so it will find all in the place where it should be. Another question: >So I did this: > >$ ln -svdnf '/home/sorenboss/.cpan/' ~/.cpan >create symbolic link `/cdv/e/home/sorenboss/.cpan' to >`/home/sorenboss/.cpan/' > Why didn't you mount this way: $ mount -s -b x:/cygwin/home/sorenboss/.cpan \ > e:/home/sorenboss/.cpan ? I use always mount for something like this. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
CygwinPerl Q - interact with symlinked dir?
Hello, I recently had move some files around due to space constraints on my local disks. What got moved was my $HOME directory subtree (where ~/* points to in Cygwin). LONG time ago, when setting up Cygwin Perl, I choose to place the .cpan directory under my user home directory "~/". Now my "~/" is on a different Windows volume ("E:") and everything is fine, except I am worrying about getting zapped next time i need to run CPAN, because: I needed to leave the large .cpan directory in the old location ("E:" is short on space). So I did this: $ ln -svdnf '/home/sorenboss/.cpan/' ~/.cpan create symbolic link `/cdv/e/home/sorenboss/.cpan' to `/home/sorenboss/.cpan/' Well and dandy! That *seems* to mean that there is a symlink named ".cpan[.lnk]" in E:\home\sorenboss (posix mounted ~/) which points to a dir "D:\cygwin\home\sorenboss\.cpan" (posix /home/sorenboss/.cpan), which in turn contains two dirs: "build" and "sources" -- like it is supposed to. My question is: what is Perl going to do when I run an invocation of CPAN? Is it going to look in "~/.cpan" and if so, will it play nicely with a symlink and transparently find the existing dirs over on the other logical volume? Or will it still think that the configuration files are in "D:\cygwin\home\sorenboss\.cpan" (/home/sorenboss/.cpan)? TIA for any observations, tips and clues. BTW, I think this minor remodelling project went so well because I set $HOME in my overall Windows environment (as a global environmental variable %HOME% -- for newbies) before starting Cygwin. I've got a system for doing this that is somewhat flexible and automagical (in a teeny tiny minor way) and I am going to post about it in another message. Best regards, Soren Andersen -- Religion is a tool, like a hammer. You can use a hammer to build a house or to kill your neighbor; nobody can really design a hammer that can't kill, if the hammer is to perform its more positive function. - [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/