HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by fensipens | Hacker News Reader
Parent
Full thread
fensipens
·
$BASHPID and $! are two different things.
View on HN
pstadler
·
I need to know the PID of the subshell, inside the subshell. $BASHPID was introduced to hold this value. While $$ still contains the PID of the parent process and $! is not available inside the subshell after all.
Reply on news.ycombinator.com