Le Tue, 12 Jul 2011 17:21:59 +0800
"Kim-man 'Punky' TSE" <[email protected]> a écrit:

> Hi Beat,
> 
> Why not just remove bash-completion?
> 
> Regards,
> Punky

Hello,

Why not executing bash_completion when in interactive shell only?

case "$-" in
*i*)    echo This shell is interactive ;;
*)      echo This shell is not interactive ;;
esac

or

if [ -z "$PS1" ]; then
        echo This shell is not interactive
else
        echo This shell is interactive
fi


-- 
Stéphane ACOUNIS
SUBATECH Nantes - Service d'Électronique
Tél: 02-51-85-84-28  06-64-62-99-20

«Faut pas se laisser abattre» devise Kennedy

_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to