This is the mail archive of the
mailing list for the Cygwin project.
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>, Max Bowsher <maxb at ukf dot net>
- Cc: cygwin-apps at cygwin dot com
- Date: Mon, 3 Feb 2003 13:23:22 -0500 (EST)
- Subject: Re: base-files-mketc.sh
- Reply-to: cygwin-apps at cygwin dot com
> 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:
> 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?
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
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.
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,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!