[victor@server ~/test5]$ ./test2.sh
#   for devdir in /etc/udev/devices /lib/udev/devices; do
   for devdir in dir; do
    [ -d "$devdir" ] || continue
   echo $devdir
   pushd /
   pushd $devdir
   set *
   if [ "$1" != "*" ]; then
     echo boucle if $1
      echo $@
   fi
done
+ for devdir in dir
+ '[' -d dir ']'
+ echo dir
dir
+ pushd /
/ ~/test5
+ pushd dir
./test2.sh: line 8: pushd: dir: No such file or directory
+ set audit bin boot dev dir1 etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys test2.sh test4popd.sh testhrea.410 tftpboot tmp usr var
+ '[' audit '!=' '*' ']'
+ echo boucle if audit
boucle if audit
+ echo audit bin boot dev dir1 etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys test2.sh test4popd.sh testhrea.410 tftpboot tmp usr var
audit bin boot dev dir1 etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys test2.sh test4popd.sh testhrea.410 tftpboot tmp usr var
echo exit
+ echo exit
exit
