Salut,
A optimisé selon tes besoins ... #!/bin/sh
DIALOG=dialog
$DIALOG --backtitle "MENU DE COMPILATION" \
--title "COMPILATION" \
--radiolist "Faites votre choix : " 0 0 0 \
"Hello1.c" "Compilation programme Hello1." off \
"Hello2.c" "Compilation programme Hello2." off \
"Hello3.c" "Compilation programme Hello3" off 2>/tmp/checklist.tmp.$$
retval=$?
choix=`cat /tmp/checklist.tmp.$$`
rm -f /tmp/checklist.tmp.$$
case $retval in
0) case $choix in
Hello1.c) gcc -o hello1 hello1.c
./hello1
;;
Hello2.c) gcc -o hello2 hello2.c
./hello2
;;
Hello3.c) gcc -o hello3 hello3.c
./hello3
;;
esac
;;
*)
echo "Programme arrêté...";;
esac;-))


