Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: outputs of _users and _hosts to arrays



Oops.

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

should be,

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



Messages sorted by: Reverse Date, Date, Thread, Author