Subject: Re: CVS commit: src/etc
To: None <tech-userlevel@NetBSD.org>
From: Pavel Cahyna <pavel@NetBSD.org>
List: tech-userlevel
Date: 12/03/2006 22:47:04
On Sun, Dec 03, 2006 at 10:42:04PM +0100, Hubert Feyrer wrote:
> On Sun, 8 Oct 2006, Alan Barrett wrote:
> 
> >On Sun, 08 Oct 2006, David Laight wrote:
> >>>>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.
> >>
> >>Or parse the output of either 'set -o' or 'set +o' to work out
> >>what is (appears to be) supported.
> >
> >I went with    (set -o tabcomplete 2>/dev/null) && set -o tabcomplete
> 
> You could also check $KSH_VERSION ...

This will catch our (pd)ksh, but not any shell other than our /bin/sh and
our (pd)ksh.

Pavel