Re: Finding junction points in cygwin

2009-11-10 Thread Christopher Faylor
On Mon, Nov 09, 2009 at 11:30:45PM -0800, aputerguy wrote: > >Christopher Faylor writes >> It's not clear whom you are expecting to prepare this comprehensive >> list. For Cygwin we clearly want you to use our symlinks. It's a >> bonus that Corinna has implemented any functionality for anything >

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
Christopher Faylor writes > It's not clear whom you are expecting to prepare this comprehensive > list. For Cygwin we clearly want you to use our symlinks. It's a > bonus that Corinna has implemented any functionality for anything > else at all. No real expectations and not a complaint about cy

Re: Finding junction points in cygwin

2009-11-09 Thread Christopher Faylor
On Mon, Nov 09, 2009 at 01:41:50PM -0800, aputerguy wrote: > >"DePriest, Jason R." wrote: >> There is also the 'subst' command that lets you create a directory and >> point it to a drive. > >OK - now I am truly tearing out my hair as 'subst' makes #11. > >I'm thinking a table with the following col

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
"DePriest, Jason R." wrote: > There is also the 'subst' command that lets you create a directory and > point it to a drive. OK - now I am truly tearing out my hair as 'subst' makes #11. I'm thinking a table with the following columns would be very helpful: A. Name of command B. Source (e.g., Cyg

Re: Finding junction points in cygwin

2009-11-09 Thread DePriest, Jason R.
On Mon, Nov 9, 2009 at 8:46 PM, aputerguy <> wrote: > > More generally, could someone point me to a single source that can accurately > compare and contrast the following notions of "links" in cygwin/windoze: > > 1. Hard links (ln) > 2. Soft links (ln -s) >    - Old style >    - New style > 3. Wind

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
And also add to the below list: 10. mklink -- More generally, could someone point me to a single source that can accurately compare and contrast the following notions of "links" in cygwin/windoze: 1. Hard links (ln) 2. Soft links (ln -s) - Old style - New style 3.

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
Corinna Vinschen writes: >On Nov 9 11:27, aputerguy wrote: >> The nice thing though about junction.exe is that it uses the *nix like >> '-d' >> flag rather than the dos-like '/D' flag that mklink seems to use. >mklink /d creates a symlink with a directory DOS attribute, it does >not delete the

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
More generally, could someone point me to a single source that can accurately compare and contrast the following notions of "links" in cygwin/windoze: 1. Hard links (ln) 2. Soft links (ln -s) - Old style - New style 3. Windows shortcuts 4. Junctions created by junction.exe 5. Reparse poin

Re: Finding junction points in cygwin

2009-11-09 Thread Corinna Vinschen
On Nov 9 11:27, aputerguy wrote: > The nice thing though about junction.exe is that it uses the *nix like '-d' > flag rather than the dos-like '/D' flag that mklink seems to use. mklink /d creates a symlink with a directory DOS attribute, it does not delete the symlink. Corinna -- Corinna Vin

Re: Finding junction points in cygwin

2009-11-09 Thread Corinna Vinschen
On Nov 9 11:16, aputerguy wrote: > I will look into getting mklink for XP in the meantime. There's no mklink for XP. It's a cmd builtin in Vista and later. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin D

Re: Finding junction points in cygwin

2009-11-09 Thread Corinna Vinschen
On Nov 9 18:59, Andy Koppe wrote: > 2009/11/9 Corinna Vinschen: > > aputerguy: > >> But don't see any symlinks.. > > Uh, I see.  Don't use the junction tool, use cmd's mklink instead. > > Was mklink introduced with Vista? It's not present on XP. The Yes, it has been added to cmd in Vista. Unfor

Re: Finding junction points in cygwin

2009-11-09 Thread Corinna Vinschen
On Nov 9 19:09, Corinna Vinschen wrote: > On Nov 9 09:39, aputerguy wrote: > > > > Corinna writes.. > > > Try Cygwin 1.7. It recognizes directory junctions as symlinks. > > > > $ uname -r > > 1.7.0(0.214/5/3) > > > > But don't see any symlinks... > > Uh, I see. Don't use the junction tool,

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
I have been googling on junction.exe and mklink. Since they both create reparse points, in what way are the reparse points different to the extent that cygwin recognizes those from mklink but not those form junction.exe. The nice thing though about junction.exe is that it uses the *nix like '-d'

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
Corinna writes: > Uh, I see. Don't use the junction tool, use cmd's mklink instead. > junction.exe creates directory symlinks which can't be easily recognized > as directory junctions, at least not using the default technique. > I'll look into supporting these weird junctions as well. Thanks. S

Re: Finding junction points in cygwin

2009-11-09 Thread Andy Koppe
2009/11/9 Corinna Vinschen: > aputerguy: >> But don't see any symlinks.. > Uh, I see.  Don't use the junction tool, use cmd's mklink instead. Was mklink introduced with Vista? It's not present on XP. The alternative there is linkd.exe, available as part of the freely downloadable Windows Server 20

Re: Finding junction points in cygwin

2009-11-09 Thread Corinna Vinschen
On Nov 9 09:39, aputerguy wrote: > > Corinna writes.. > > Try Cygwin 1.7. It recognizes directory junctions as symlinks. > > $ uname -r > 1.7.0(0.214/5/3) > > But don't see any symlinks... Uh, I see. Don't use the junction tool, use cmd's mklink instead. junction.exe creates directory symlin

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
Corinna Vinschen writes... > Indeed, and I can't reproduce this, neither in Cygwin 1.5.25, nor in > Cygwin 1.7. The only difference between your and my run is that I'm > using the cmd mklink builtin rather than the junction tool, like this: > BLODA? I don't know... I don't have a lot of BLODA o

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
Corinna writes.. > Try Cygwin 1.7. It recognizes directory junctions as symlinks. $ uname -r 1.7.0(0.214/5/3) But don't see any symlinks... -- View this message in context: http://old.nabble.com/Finding-junction-points-in-cygwin-tp26260606p26270509.html Sent from the Cygwin list mailing list

Re: Finding junction points in cygwin

2009-11-09 Thread Corinna Vinschen
On Nov 9 09:17, aputerguy wrote: > > Actually the behavior is even stranger... renaming and then deleting > junctions creates spurious directories. > > echo "This is a test file" >| targetfile > mkdir targetdir > echo "This is a test dir file" >| targetdir/targetdirfile > > junction.exe junctio

Re: Finding junction points in cygwin

2009-11-09 Thread Corinna Vinschen
On Nov 9 08:51, aputerguy wrote: > > Corinna Vinschen writes > > Not quite. Directory junctions appear as symlinks. Volume junctions > > are treated as simple directories since they are for all practically > > purposes the same as Unix mount points. > > But I still see several issues at least

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
Actually the behavior is even stranger... renaming and then deleting junctions creates spurious directories. echo "This is a test file" >| targetfile mkdir targetdir echo "This is a test dir file" >| targetdir/targetdirfile junction.exe junctionfile targetfile junction.exe junctiondir targetdir

Re: Finding junction points in cygwin

2009-11-09 Thread aputerguy
Corinna Vinschen writes > Not quite. Directory junctions appear as symlinks. Volume junctions > are treated as simple directories since they are for all practically > purposes the same as Unix mount points. But I still see several issues at least with directory junctions. 1. When I use junction

Re: Finding junction points in cygwin

2009-11-09 Thread Corinna Vinschen
On Nov 9 07:51, Andy Koppe wrote: > 2009/11/9 aputerguy: > > Does cygwin have any ability to find/identify NTFS junction points? > > This would be useful so that you don't inadvertently mistreat them thinking > > they are regular files or directories. > > They appear as symbolic links. Dunno how

Re: Finding junction points in cygwin

2009-11-08 Thread Andy Koppe
2009/11/9 aputerguy: > Does cygwin have any ability to find/identify NTFS junction points? > This would be useful so that you don't inadvertently mistreat them thinking > they are regular files or directories. They appear as symbolic links. Dunno how to tell them from other sorts of shortcuts. >