msh if not

Ralf Friedl Ralf.Friedl at online.de
Wed Jun 11 03:55:05 PDT 2008


Roberto A. Foglietta wrote:
>  I would know how I can write this
>
>  if ! true; then echo ciao; fi
>
>  in msh's dialet because msh does not recognize ! (not)
You can use the else part:

if true; then :; else echo ciao; fi

Regards
Ralf Friedl


More information about the busybox mailing list