ubuntu type,shell function return string