RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | Linux/Unix
SHELL condition
tlep, le sam. 19 mai 2007 à 00:34:30
Bonjour,

comment imbriquer des conditions en shell ?
Je m'explique:
if [ "$fichier" != "" -a [ ! -f "$fichier" -o ! -d "$fichier" ]];then echo "Arguments incorrects: monscript FICHIER." && exit 1;fi
J'obtiens invariablement:
bash: [: missing `]

Merci ;-) Configuration: Linux Debian
Mozilla 1.8.1.3


lami20j
mai 07
Suivant
REPONSES
lami20j
mai 07
jipicy
mai 07
tlep
mai 07
jipicy
mai 07
tlep
mai 07
jipicy
mai 07
tlep
mai 07
jipicy
mai 07
bipod
mai 07
tlep
mai 07
Version Web
Réalisé par RedShift
no save