Amit Kapila <[email protected]> wrote: > While working on one software, I face the requirement > to untar a tar file on windows and it contains symlinks as > well. > > While untaring it using tar -xvf abc.tar, it gives me below > error for symlinks: > > tar.exe: xyz/1234: Cannot create symlink to `E:\\sym_loc': Not a directory > > The directory sym_loc already exists, is this a known > limitation of tar on Windows?
Win-DOS does not support symlinks. Even newer versions that claim to support symlinks make a difference between links to files and links to directories. If you are not able to live with the Cygwin symlink emulation, I recommend to use star and to tell it to make copies by using the option -copysymlinks Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (uni) [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
