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. Similarly, your bash terminal session will also be assigned with