> Well, there is a bug AFAICS. Issue is that 'ln -s file dir' fails, but > 'ln -s file file1' works. See for this thread > http://lists.zerezo.com/mingw-users/msg03642.html, where this is > described. So it might be also a valid fix here to append to directory > the $f again.
OK, so it's indeed a bug in msys which should be fixed there IMO if it does not support 'cp -p file dir' Adding $f may cause command line limitations on some platforms, so I'd rather avoid that. Arno