Cygwin generates syscalls for *.lnk files on filesystems with native symlink support?

matthew patton pattonme@yahoo.com
Mon Jan 8 18:44:19 GMT 2024


> Cygwin does not create symlinks as junctions.  No idea where you got that idea.
$ echo $CYGWINwinsymlinks:nativestrict
$ /usr/bin/ln -s default.GGG6q test1
01/08/2024  01:24 PM    <JUNCTION>     test1 [...]Type=File
$ (unset CYGWIN; /usr/bin/ln -s default.GGG6q test2.nocygwin)
01/08/2024  01:25 PM    <JUNCTION>     test2.nocygwin [...]Type=File


# 'ln' is a wrapper function around 'mklink' since Cygwin does the wrong thing.https://github.com/tb3088/shell-environment/blob/ccf7aa161899c2c4ebe2d9e980e674bc726a3ef3/.functions_os.CYGWIN_NT#L10

$ ln default.GGG6q test3.mklinksymbolic link created for test3.mklink <<===>> default.GGG6q01/08/2024  01:25 PM    <SYMLINK>      test3.mklink [default.GGG6q]Type=.symlink

C:\Users\xxx>type default.GGG6qfoobar
C:\Users\xxx>type test1The file cannot be accessed by the system.
C:\Users\pattonma>type test2.nocygwinThe file cannot be accessed by the system.
C:\Users\xxx>type test3.mklinkfoobar

  


More information about the Cygwin mailing list