blob: f3753249ca229058fe85cd5f8e25c72137a1c37c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /bin/sh
# $OpenBSD: seterror.sh,v 1.2 2009/01/29 23:27:26 jaredy Exp $
# set -e is supposed to abort the script for errors that are not caught
# otherwise.
set -e
if true; then false && false; fi
if true; then if true; then false && false; fi; fi
for i in 1 2 3
do
true && false
false || false
done
! true | false
true
|