Hacker Newsnew | past | comments | ask | show | jobs | submit | throwaway41232's commentslogin

I cant really check this right now but doesnt

$(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)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: