Hello again,

we have now 3 cases of ~char generating nslcd syslog errors, so my propositions 
below

__expand_tilde_by_ref () 
{
        case ${!1} in \~*)eval $1=$(printf \~%q "${!1#\~}");esac
}
_expand () 
{
        case $cur in
                \~*/*)__expand_tilde_by_ref cur;;
                \~*)_tilde "$cur" || eval COMPREPLY[0]=$(printf \~%q 
"${COMPREPLY[0]#\~}");return ${#COMPREPLY[@]}
        esac
}
_quote_readline_by_ref ()
{
        case $1 in
                '')printf -v $2 %s "$1";;
                \'*)printf -v $2 %s "${1:1}";;
                \~*)printf -v $2 \~%q "${1:1}";;
                ?*)printf -v $2 %q "$1"
        esac
        case ${!2} in \&*)eval $2=${!2};esac
}


Best regards
-- 
Adam Tlałka
System & Network Administration Group
IT Service Center, Gdańsk University of Technology, PL

Reply via email to