dans un script zsh j'ai :
BLIST=(`ls *.bundle`)
if [[ $? -eq 0 ]] then
while (( i++ < $#BLIST )) {
echo "removing \"$BLIST[${i}]\"."
}
fi
ls donne :
./build:1: no matches found: *.bundle
comment éviter ce message ???
j'ai essayé :
BLIST=(`ls *.bundle 2>&1 /dev/null `)
ne change rien...
comment faire pour ne pas avoir le message "/build:1: no matches found:
*.bundle" ???
c'est juste une question "cosmétique" ...
--
yvon
_______________________________________________
archives :
http://listes.patpro.net/list/sshfr.fr.html
http://listes.patpro.net/mailman/listinfo/script_shell_fr