Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwaway41232
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
throwaway41232
4y ago
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)