LinuxSay - A Discussion Forum for Linux Enthusiasts

Learn Difference Between $$ and $BASHPID in Bash

Recently I was working on a shell script and I saw a significant difference in how bash special variable $ and BASHPID behaves. Every process running in Linux will be assigned with a process ID and that is how the operating system handles the process.

Originally Published at Learn Difference Between $$ and $BASHPID in Bash