|
2004-05-11
| ||
| 23:41 | • Ticket [951964ffff] file link requires target existence status still Close... artifact: b09d958bf0 user: dgp | |
| 23:30 | • Closed ticket [951964ffff]. artifact: fee715025d user: vincentdarley | |
| 15:07 | • New ticket [951964ffff]. artifact: 5db07eb19b user: dgp | |
[file link] requires target existence
Closed / Invalid951964ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-05-11 15:07:51
% file link foo bar could not create new link "foo": target "bar" doesn't exist This constraint is undesirable. The OS is happy to do this for me: $ ls bar bar: No such file or directory $: ln -s bar foo $: ls -l foo lrwxrwxrwx 1 dgp acmd-cam 3 May 11 11:05 foo -> bar In particular, with this contraint, I cannot create a link loop, thus I can't write a test suite entry that tests my code's ability to detect and deal with link loops.
vincentdarleyplain2004-05-11 23:30:12
Logged In: YES user_id=32170 For better or worse, this was actually by design, and is clearly documented both in tip99 and in the 'file' man page. I agree this might be unexpected from a unixxy point of view, but from a more general perspective I think this behaviour is actually good. (Note: I think you can get the same effect by: 'file mkdir foo' 'file link bar foo' 'file delete foo').
dgpplain2004-05-11 23:41:37
Logged In: YES user_id=80530 I can create a broken link that way, yes, but there's no way for me to create a link loop.
Log in (anonymous is fine) to add a comment.