Bernard Schoenacker a écrit :
Bonjour, Si j'ai bien compris c'est du genre : if[ -n $DISPLAY ] ;then fortune -s|xcowsay ;else fortune -s|cowsay -f tux fi zsh: parse error near `then' Merci de bien vouloir corriger slt bernard
Essaye voir ca :if [ -n $DISPLAY ]; then fortune -s|xcowsay ;else fortune -s|cowsay -f tux ;fi