[prev in list] [next in list] [prev in thread] [next in thread] 

List:       voyage-linux
Subject:    Re: [Voyage-linux] SOLVED: slow ssh login on wrap/alix with
From:       Stéphane Acounis
Date:       2011-07-12 9:32:30
Message-ID: 20110712113230.31213706 () nanpc201
[Download RAW message or body]

Le Tue, 12 Jul 2011 17:21:59 +0800
"Kim-man 'Punky' TSE" <punkytse@punknix.com> 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
Voyage-linux@list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic