Get all users from User Manager -- strange output

I want to get all users from usermanager. Below is the script.

[admin@MikroTik] > tool user-manager user print
Flags: X - disabled, A - active, I - incomplete
0 subscriber=admin name=“abc” password=“123” group-name=“512k” uptime-used=10m37s
download-used=231834 upload-used=264837 last-seen=mar/13/2009 22:09:31
credit-count=0 credit-left=0s credit-duration=0s credit-price=0
credit-time-added=0s

1 subscriber=admin name=“xyz” password=“123” group-name=“256k” last-seen=never
credit-count=0 credit-left=0s credit-duration=0s credit-price=0
credit-time-added=0s
[admin@MikroTik] > :global user [/tool user-manager user find subscriber=admin]
[admin@MikroTik] > :global i
[admin@MikroTik] > :foreach i in=$user do={ :put [$i name] }
*42
*43
[admin@MikroTik] >

the result is *42,*43 which should abc, xyz.
Am i doing something wrong here?

That is the correct output. Those are pointers to the datablocks containing the data. If you want the name, you must use get.

:foreach i in=$user do={ :put [/tool user-manager user get $i name] }

Thanks, it worked