12345678910111213141516171819 |
- ! ( echo hello | grep h >/dev/null 2>&1 ); echo $?
- ! echo hello | grep h >/dev/null 2>&1 ; echo $?
- ! true ; echo $?
- ! false; echo $?
- ! (false) ; echo $?
- ! (true); echo $?
- ! true | false ; echo $?
- ! false | true ; echo $?
- ! (true | false) ; echo $?
- ! (false | true) ; echo $?
|