Bonjour
je n'arrive pas a debuguer un de mes programmes .Le voici

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
for i in `~/COURS_TD_TP/SE/.sh-trash/affiche.sh`
do
 
	if [  $i ==  $1 ] ; then
		while [ $a -lt `cat ~/COURS_TD_TP/SE/.sh-trashbox/INDEX|cut -d' ' -f2 |tr / ' '|head -n$c |tail -n1|wc -w` ]		
		do	
			if [ ! -e `cat ~/COURS_TD_TP/SE/.sh-trashbox/INDEX |cut -d ' ' -f2 |head -n$c |tail -n1 |cut -d/ -f1-$a` ];then
				mkdir `cat ~/COURS_TD_TP/SE/.sh-trashbox/INDEX |cut -d ' ' -f2 |head -n$c |tail -n1 |cut -d/ -f1-$a`
			fi
			a=`expr $a + 1 `
 
		done
		tmp=`cat ~/COURS_TD_TP/SE/.sh-trashbox/INDEX |head -n$c |tail -n1 |cut -d ' ' -f1`
		e=`expr $a + 1`
		tmp1="~/COURS_TD_TP/SE/.sh-trashbox/$tmp"
		tmp2=`cat ~/COURS_TD_TP/SE/.sh-trashbox/INDEX |cut -d ' ' -f2 |head -n$c |tail -n1 |cut -d/ -f$e`
		gunzip -c "$tmp1" > "$tmp2"
		rm  $tmp1
 
	else
	c=`expr $c + 1`
	echo $c
	fi
 
 
done

Il me met un probleme quand je compare $1 == $i .
En fait mon programme utilise un autre programme affiche.sh .ce programme liste des non de fichier .Et $1 doit etre un de ces nom de fichier .Je comprend pas pourquoi je n'arriva pas a comparer ces 2 strings .

Quelqu'un aurait une solution ?
D'avance merci .