Subject: tabcomplete in /etc/shrc
To: None <tech-userlevel@netbsd.org>
From: Alan Barrett <apb@netbsd.org>
List: tech-userlevel
Date: 10/08/2006 00:19:38
On Sun, 08 Oct 2006, Pavel Cahyna wrote:
> > Modified Files:
> > 	src/etc: shrc
> > 
> > Log Message:
> > set -o tabcomplete if interactive.  Discussed on tech-userlevel.
> 
> Please don't do this. This file is also used by ksh, which knows
> nothing about tabcomplete.

How about an eval test to see if it will work?

    eval "set -o tabcomplete 2>/dev/null" && set -o tabcomplete

--apb (Alan Barrett)