also sprach Bob Proulx <[EMAIL PROTECTED]> [2008.04.14.2220 +0200]: > BSD systems will treat symlinks transparently. If the symlink points > to a directory then the new target will be made in the directory. > SysV systems will detect that the target is a symlink and replace the > symlink. I personally find the SysV behavior much more intuitive.
Assuming Debian is in the SysV camp, then this is not what's happening. The symlink is being created inside the directory, even though I added -f and did not postfix a slash to the name. The behaviour I see for ls is different: here, the symlink is dereferenced only when a slash is appended. > between BSD and SysV. The only portable strategy is to remove the > target first to ensure that it does not exist before creating a new > one. I have been tripped up on this point by moving scripts from > HP-UX to BSD and GNU systems. This potentially creates a race condition... -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems microsoft: for when quality, reliability, and security just aren't that important!
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

