The command: command || whatever is entirely equivalent to: if command then : else whatever fi If 'whatever' is more than one line, one can write: command || { whatever1 whatever2 . . . }