aafd6a87a6
is supposed to be 0, not the status of the previous command. Reported by: Eygene Ryabinkin PR: 116559 Approved by: re (gnn)
14 lines
123 B
Plaintext
14 lines
123 B
Plaintext
#$FreeBSD$
|
|
f()
|
|
{
|
|
false
|
|
case $1 in
|
|
foo) true ;;
|
|
bar) false ;;
|
|
esac
|
|
}
|
|
|
|
f foo || exit 1
|
|
f bar && exit 1
|
|
f quux || exit 1
|