Hi Motoi,

Thanks much for the help.

Load zsh/parameter module,

% zmodload -i zsh/parameter

and,

% users=( $userdirs[(I)*] )

This works nicely.

hosts=( ${$( cat /etc/hosts | cut -d : -f 1,7 | grep -v "#" )//:*/} )

to get what I need.

This has the same problem, but I don't know a better way well. Using some functions from Perl or some other language?

Do you mean that the commands inside the parameter expansion may work on Mac OS X but not on other computers?