Test de bash si dans la coque interactive
if [[ $- == *i* ]]
then
do_interactive_stuff
fi
Gifted Gull
if [[ $- == *i* ]]
then
do_interactive_stuff
fi