jeudi 5 janvier 2017

Exclamation point in if condition bash

In some code I've seen something along the lines of

if ! some-command; then
    #do something
fi

What's the effect of the exclamation point? I see that if you use brackets, it can be used for negation. Is that the same effect here?

Aucun commentaire:

Enregistrer un commentaire