Subject: Re: Tab completion in /bin/sh
To: None <>
From: Alan Barrett <>
List: current-users
Date: 05/13/2005 11:32:08
On Fri, 13 May 2005, Tim Jakobsen wrote:
> $ cd /l
> [press tab]
> lib/      libexec/
> $ cd /lib
> Now pressing tab several times only removes the b in lib or puts it
> back. It doesn't add the "/" to go into the lib dir. Having ksh add the
> "/" when pressing tab several times would make things easier and quicker
> when trying to access subdirs.

There's no way for the shell to know whether you want to expand "/lib"
to "/lib/" or to "/libexec/".  The best it can do is to show you a list
of possible completions and let you choose.  And it does do that.  So I
don't understand what you want to be different.

--apb (Alan Barrett)