The results are different using a process list. The list is executed with echo $BASH_SUBSHELL tacked onto the end:
In this case, the number one (1) displayed at the output's end. This indicates a subshell was indeed created and used for executing these commands.
- Chapter 5: Understanding the Shell
- from Linux Command Line and Shell Scripting Bible, 3rd Edition
- Publisher: John Wiley & Sons
- Released: January 2015
bash subshell created by using parens
Share this highlighthttp://www.safaribooksonline.com/a/linux-command-line/418359/