Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!natinst!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F. Haugh II) Newsgroups: comp.unix.wizards Subject: Re: Hard links to directories: why not? Message-ID: <18468@rpp386.cactus.org> Date: 23 Jul 90 04:25:33 GMT References: <18461@rpp386.cactus.org> <1990Jul22.035130.12559@zoo.toronto.edu> <18466@rpp386.cactus.org> <3724@auspex.auspex.com> Reply-To: jfh@rpp386.cactus.org (John F. Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 34 X-Clever-Slogan: Recycle or Die. In article <3724@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >>My [ second ] favorite question is why doesn't the SunOS ln command >>permit the use of the -f flag for blasting an existent target flag? > >Because the (4.3)BSD "ln" command doesn't seem to, either: You're missing the entire purpose of the question - the question isn't what is the behavior, but rather, why isn't the behavior something else. That two different behaviors exist is obvious - now why hasn't anyone bothered to add an option to select which one you get? Another interesting question is why doesn't this work - Script is typescript, started Sun Jul 22 23:16:41 1990 #rpp386-> pwd /dev #rpp386-> ls -l null crw-rw-rw- 1 sysinfo sysinfo 4, 2 Jul 22 23:12 null #rpp386-> mknod barf c 4 2 #rpp386-> mv barf /usr/tmp #rpp386-> ls -l /usr/tmp/barf -rw-r--r-- 1 root root 0 Jul 22 23:16 /usr/tmp/barf #rpp386-> rm /usr/tmp/barf #rpp386-> exit Script done Sun Jul 22 23:17:04 1990 My manual says the MV command renames files. What was so hard about renaming /dev/barf to /usr/tmp/barf? And before someone protests that moving devices around is unusual, it also doesn't work for named pipes. In fact, the behavior for renaming a named pipe is so far off it's quite disgusting. -- John F. Haugh II UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 832-8832 Domain: jfh@rpp386.cactus.org