Subject: Re: CVS commit: src/etc
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 12/04/2006 23:16:15
In article <20061204125740.GC1613@apb-laptoy.apb.alt.za>,
Alan Barrett <firstname.lastname@example.org> wrote:
>On Sun, 03 Dec 2006, Hubert Feyrer wrote:
>> On Sun, 8 Oct 2006, Alan Barrett wrote:
>> >I went with (set -o tabcomplete 2>/dev/null) && set -o tabcomplete
>> You could also check $KSH_VERSION ...
>I have a strong preference for teating whether functionality is
>available, rather than testing version numbers or strings. Not all
>shells that support "set -o tabcomplete" will set $KSH_VERSION,
>whereas code that says "if 'set -o tabcomplete' works then do 'set -o
>tabcomplete'" will always do the right thing.
Functional tests are always better :-)