This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]


> On Mon, 3 Feb 2003, Igor Pechtchanski wrote:
> >If I understand the (new style) symlink implementation correctly, both the
> >POSIX path and the Windows path are needed in the corresponding shortcut.

On Mon, 3 Feb 2003, Pierre A. Humblet wrote:

> [snip]
> I haven't looked into the implementation but doing ln -s 'c:\windows' win
> works perfectly fine for me. Dos dir shows a win.lnk,
> ls -l win shows the Windows path.
> Do you notice a problem when you try?
> Pierre

On Mon, 3 Feb 2003, Max Bowsher wrote:

> No, I have succesfully tested symlinks to the Windows hosts file in mixed
> and win32 formats:
> $ ln -s C:\\WINDOWS\\system32\\drivers\\etc\\hosts hosts2
> $ ln -s C:/WINDOWS/system32/drivers/etc/hosts hosts2
> Both produce a valid symlink - which gives us an easy way out of this
> problem.

Yes, this seems to work.  I guess I just prefer seeing POSIX paths in

FWIW, I noticed another problem with the `cygpath -u` syntax: if the user
has her own mounts for the C: drive, the symlink will reflect that mount,
and thus will not work for other users on the machine.  For example, I have

$ mount | grep user
c: on /mnt/c type user (binmode)

and creating a symbolic link produces

$ ln -s `cygpath -u 'c:\WINNT\system32\drivers\etc\hosts'` hosts
$ ls -l hosts
lrwxrwxrwx    1 igor     None          154 Feb  3 13:20 hosts -> /mnt/c/WINNT/system32/drivers/etc/hosts

which, of course, will not work for the other users on the machine.  So it
looks like both of you are right, and we need to use Win32 paths.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]