On Sun, 19 Nov 2006, LeVA wrote:

> Hi!
> 
> I have pdksh version 'PD KSH v5.2.14 99/07/13.2' on an OpenBSD and a 
> Debian machine. Both have exactly the same version numbers and settings 
> (config files, set -o etc...). However, when the shell tries to 
> complete a filename or an executable name on the Debian machine it goes 
> like this:
>  1) cd
>  2) /usr/bin/cd-discid
>  3) /usr/bin/cdadd
>  4) /usr/bin/cdclose
>  5) /usr/bin/cdctrl
> [...]
> 
> and on the OpenBSD machine:
> cd             /usr/bin/cdio
> 
> How can I configure the latter to act like the former (display the list 
> vertically with numbers)?

Are you using "set -o emacs" or "set -o vi" ?

What command(s) are you using for file completion?

My bet is still that Debian is doing something fishy/tricky with
an alias or maybe with a source code patch.

Those pesky Linux releases all try to be unique, special snowflakes.
On the Debian, I bet that you can enter the number and get the command,
right?

I'll look more in the (BSD) source code once I know more what you're
using (set -o emacs or set -o vi).  The relevant files seem to be
/usr/src/bin/ksh/emacs.c and ..../vi.c 

I've seen that numbered stuff somewhere else, a long time ago.
Can't recall where, might have been on Linux or even something like
Ultrix or some SYSV system.

Dave
-- 
  "Confound these wretched rodents! For every one I fling away,
               a dozen more vex me!" -- Doctor Doom
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to