Ah yeah subshells are great. I mostly use them to gather up the output from a bunch of commands but they’re also great for encapsulating environment. Note that you can also use ;s in them too!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.