Skip to content
Luxembourg edited this page Mar 20, 2013 · 3 revisions

@cpattr

@cpattr <obj>/<attr> = <obj1>/<attr1> [,<obj2>/<attr2>,<obj3>/<attr3>,...] @cpattr <obj>/<attr> = <obj1> [,<obj2>,<obj3>,...] @cpattr <attr> = <obj1>/<attr1> [,<obj2>/<attr2>,<obj3>/<attr3>,...] @cpattr <attr> = <obj1> [,<obj2>,<obj3>,...]

the first form of this command is used to copy <attr> on <obj> to the object-attribute pairs in a comma-separated list. for example:

@cpattr test/va = test/vb, cube/va, tribble/foo

would copy the va attribute from object "test" to vb on "test", va on "cube", and foo on "tribble". <objn> is matched as if you were performing a @set on it.

the second form copies <attr> to the list of objects, with the name <attr>. the third form copies <attr> from the object that executes the @cpattr, to the object-attribute pairs in the list. finally, the fourth form copies <attr> from the object that executes the @cpattr to the objects in the list, with the name <attr>.

Clone this wiki locally