if i do that _optcomplete() { COMPREPLY=( /Users /Groups "/System Accounts" "/System Groups" /Computers "/System Configs" /Idmap "/Address Book" /sudoers /dhcp /dns "/Password Policies" /OxObjects /OxObjects/ResourceObjects /OxObjects/ResourceObjects/ResourceGroups /OxObjects/ResourceObjects/Resources /OxObjects/AdminObjects /OxObjects/AdminObjects/SMTPObjects /OxObjects/AdminObjects/DNSObjects /OxObjects/AdminObjects/SMTPObjects/MailTransports /OxObjects/AdminObjects/AvailableServers /OxObjects/AdminObjects/AvailableServers/directoryServer /OxObjects/AdminObjects/AvailableServers/webmailServer /OxObjects/AdminObjects/AvailableServers/smtpServer /OxObjects/SharedFolder /OxObjects/AdminObjects/AvailableServers/imapServer /OxObjects/AdminObjects/AvailableServers/groupwareServer /Users/uid=fbe/addr ) } the result is like that: /Address Book /OxObjects/AdminObjects/AvailableServers/groupwareServer /OxObjects/SharedFolder /Computers /OxObjects/AdminObjects/AvailableServers/imapServer /Password Policies /dhcp /OxObjects/AdminObjects/AvailableServers/smtpServer /sudoers /dns /OxObjects/AdminObjects/AvailableServers/webmailServer /System Accounts /Groups /OxObjects/AdminObjects/DNSObjects /System Configs /Idmap /OxObjects/AdminObjects/SMTPObjects /System Groups /OxObjects /OxObjects/AdminObjects/SMTPObjects/MailTransports /Users /OxObjects/AdminObjects /OxObjects/ResourceObjects /Users/uid=fbe/addr /OxObjects/AdminObjects/AvailableServers /OxObjects/ResourceObjects/ResourceGroups /OxObjects/AdminObjects/AvailableServers/directoryServer /OxObjects/ResourceObjects/Resources