I've tried my luck of ksh93r (the standalone binary from AT&T
downloads) as user login shell.
To make things more comfortable I added the following lines to my
~/.profile (I think Roland Manz wrote these lines):
----X-CUT-HERE-X--------X-CUT-HERE-X--------X-CUT-HERE-X----
# TABTAB completion mod by Roland Manz
emacs_completion_tab_count=0
function emacs_completion
{
    if [[ ${.sh.edchar} == "$(printf "\t")" ]] then
        emacs_completion_tab_count=$((emacs_completion_tab_count + 1))

        if [ $emacs_completion_tab_count -eq 1 ] ; then
            .sh.edchar="$(printf "\E\E")"
        elif [ $emacs_completion_tab_count -ge 2 ] ; then
            .sh.edchar="$(printf "\E=")"
        fi
    else
        emacs_completion_tab_count=0
    fi
}

trap emacs_completion KEYBD
set -o emacs
----X-CUT-HERE-X--------X-CUT-HERE-X--------X-CUT-HERE-X----
After log in into CDE ksh93 works very well - except that the TABTAB
mod only works for Console type terminals but not work the normal CDE
terminal windows.
Does anyone have an explanation for this? Bug or feature?
-- 
Josh

Reply via email to