Subject: Re: Tab completion in /bin/sh
To: Ian Zagorskih <ianzag@megasignal.com>
From: Tim Jakobsen <tja@jakobsen.vg>
List: current-users
Date: 05/13/2005 10:30:30
Hi,

On Fri, May 13, 2005 at 03:13:29PM +0700, Ian Zagorskih wrote:
> Hm, looks like for me on -current ksh adds "/" at the end of tab completed dir 
> name:
> 
> ---cut---
> $ uname -a
> NetBSD IANZAG 3.99.3 NetBSD 3.99.3 (DWL-G122) #0: Fri May 13 14:25:23 NOVST 
> 2005  ianzag@IANZAG:/home/ianzag/NetBSD/kernel/DWL-G122 i386
> $ set | grep KSH
> set | grep KSH
> KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2'
> $ cd /
> $ cd /t
> [press tab]
> tftpboot/  tmp/
> $ cd /tmp/
> Acro0006cRXX8     kde-ianzag/       ksocket-ianzag/   mc-ianzag/
> $ cd /tmp/
> ---cut---
> 
> Or i'm missing something in your question?
> 
> // wbr
> 

Okay I use NetBSD 2.0 and when I do:

$ 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.

I'm not sure if that explained it better? hope so otherwise ask again
and I'll try again ;) (btw. I seem to remember other shells having
something similar?)

-- 
Regards.,
 Tim