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

Re: Giving "ls" an alias causing completion problems



Hang on a moment ...

On Aug 22,  7:32am, Bart Schaefer wrote:
}
} On Aug 22,  1:31pm, Ismail Donmez wrote:
} } 
} } [~]> 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.

Do you actually have a function named "_ls" that is defined in your
zsh startup files?

That function name will conflict with the name of the completion function
used for "ls" completions.  Names starting with a single underscore are 
assumed to be "reserved" for the completion system.

In fact ...

torch% _ls() { ls }
torch% ls Config          config.log      config.modules.sh  Doc  Makefile
stamp-h
config.h  config.modules  config.status      Etc  Src       Test               
torch% 

Yep, that's almost certainly what's going on here.



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