#!/bin/sh

./startalk -h 2>&1

ec=$?
if [ "$ec" -eq 2 ]
then
  exit 0
elif [ "$ec" -eq 0 ]
then
  echo "startalk exited with 0, but I expected 2!" 1>&2
  exit 126
else
  exit $ec
fi
