Possibly a bug:
In an object with 2 scripts, successfully calling llAttachToAvatar() in one script does not generate an attach() event in the other script.
Haven't tried it with an attach() event handler in the same script as the llAttachToAvatar(), I assume it's the same.