I have a Bash parent script that on unexpected input calls an error logging child script that logs the error. I also want the execution to halt when the error occurs and th
Don't try to terminate the parent from the child. Instead call exit in the parent after the child script returned.
exit
if [ condition ]; then /path/to/child.sh exit 1 fi
or shorter
[ condition ] && { /path/to/child.sh; exit 1; }