It is possible on some OS/filesystem combinations and is allowed by
the POSIX standard.

You can do this on mac's because they added cycle detection to the
link() system call which refuses hard links to directories only in
cases where it breaks the acyclic directory structure but otherwise
allows it.

And it used to be freely allowed back in the Bell Labs days at least
up through v7. Indeed both . and .. used to be implemented as hard links.




On 07/16/2014 02:14 PM, gregrwm wrote:
>> create a hard link to the new file, then remove the old
> 
> for directories?
> 
> 
> 
> _______________________________________________ TCLUG Mailing List
> - Minneapolis/St. Paul, Minnesota tclug-list at mn-linux.org 
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>