1 karma · joined May 30, 2022 (4y ago) · 1 submissions
comment 4y ago · link · parent
$(exit 5)
just spawn a subshell which exits with 5 which is visible by the parent script you just source your show-error.sh in?
Try to subshell the source too like
(. ./show-error.sh)