From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23475 invoked by alias); 22 Aug 2013 14:33:21 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17942 Received: (qmail 26052 invoked from network); 22 Aug 2013 14:33:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130822073232.ZM1502@torch.brasslantern.com> Date: Thu, 22 Aug 2013 07:32:32 -0700 In-reply-to: Comments: In reply to Ismail Donmez "Giving "ls" an alias causing completion problems" (Aug 22, 1:31pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Ismail Donmez , zsh-users@zsh.org Subject: Re: Giving "ls" an alias causing completion problems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Aug 22, 1:31pm, Ismail Donmez wrote: } } [~]> zsh --version } zsh 5.0.2 (x86_64-suse-linux-gnu) } } } # When ls is not aliased, life is good } # Pressing tab switches between completions } } [~]> alias ls } ls=_ls You say "not aliased" but this sample makes it appear that ls *has* been aliased, possibly to the completion function for itself. If it were not aliased, you should see no output. What are you actually trying to demonstrate there? If the above really is the output from that command, then in your first sample of tab-completion you are not getting completions for "ls", you are getting completions for "_ls", which probably means just the file defaults. However, if the above really is the output, then you likely have a deeper problem happening somewhere and I'd distrust anything further until you figure out how you got that strange alias in the first place. } # Giving ls an alias pressing tab key shows all results on one line } } [~]> alias ls="ls --color" } [~]> ls bin config Desktop Documents Downloads hacks } public_html rpmbuild } bin config Desktop Documents Downloads hacks public_html } rpmbuild Are the results actually being inserted into the command line where you can edit them, or by "shows all results" do you mean that the listing display which normally appears below the command line has instead been displayed in the wrong place and wrong format? What do you see if you type instead of ? Normally it would be something very similar to this: torch% alias ls='ls --color' torch% ls tags in context :completion::complete:ls:: argument-rest options (_arguments _ls) tags in context :completion::complete:ls:argument-rest: all-files (_files _arguments _ls)