#!/usr/app/TurboShell/bin/bash
# -e ends the script at a failed command, -u at an unset name,
# pipefail counts a failure anywhere in a pipe
set -euo pipefail
trap 'echo "stopped at: $BASH_COMMAND"' ERR

echo "copying"
cp words.txt safe.txt
echo "copying a file that is not there"
cp missing.txt safe2.txt
echo "this line never runs"
