[X-Unix] Utility "ln" makes a copy instead of hard link?

Wing Wong wingedpower at gmail.com
Fri Apr 7 14:08:36 PDT 2006


Hey, no prob. Hadn't thought of the issue with TextEdit since I use vi for
everything. :)

Been burned by some custom scripts at othe jobs where hard links were used
and mv/cp and checkin/checkout tools were used. :/

Wing

On 4/7/06, Jerry Krinock <jerry at ieee.org> wrote:
>
> on 06/04/07 10:29, Wing Wong at wingedpower at gmail.com wrote:
>
> > Can you provide an ls of the directory? ls -ali
> > This should list the inodes for each file, as well as other pertinent
> data.
>
> Wing Wong,
>
> I went through your experiment and I see that indeed it works as expected.
> I repeated your experiment, and it works for me too.
>
> The reason my experiment does not work is because instead of using the
> redirection operator ">" to change the file, I am using TextEdit.  After I
> change and then save the file with TextEdit, it has a different inode than
> its linked twin.
>
> Why would it do that?
>
> Thanks for the tip on "-i" option; that makes this a lot easier to
> troubleshoot.
>
> Jerry
>
>
>


--
Wing Wong
wingedpower at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20060407/296c7dd5/attachment.html


More information about the X-Unix mailing list