This page shows you how to define a block of code in bash
The block syntax is:
{ # your code }
You can use the subshell syntax but you will not get any return status (meaning that you can't exit)
( # your code )