summaryrefslogtreecommitdiff
path: root/regress/bin/ksh/seterror.sh
blob: c7001e254c59d0cc40ab8ae894549b258b1328bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh
# $OpenBSD: seterror.sh,v 1.1 2003/02/09 18:52:49 espie Exp $

# set -e is supposed to abort the script for errors that are not caught
# otherwise.

set -e

for i in 1 2 3
do
	false && true
done
true