On Thu, 16 Feb 2006 (10:24), Andrea Ganduglia wrote:
> ~$ false && [ $? != 0 ] && echo FALSO

Perché "&&" esegue il comando successivo solo se il precedente è uscito
con status 0, il che non è vero per false (che esce con status 1).

Funziona sostituiendo il primo && con || (e sarebbe meglio sostituire !=
con -ne visto che è un confronto aritmetico e non tra stringhe)

Ciao,
-- 
Daniele                 JID: [EMAIL PROTECTED] (http://www.jabber.org)
and remember: respect is everything . . . . . . . . . . . free your mind

Attachment: signature.asc
Description: Digital signature

Rispondere a