From: Junio C Hamano Date: Thu, 17 Jun 2021 00:29:18 GMT Subject: Re: [PATCH] test-lib: fix "$remove_trash" regression and match_pattern_list() bugs Message-ID: In-Reply-To: Jeff King writes: > My thought was that the subshell takes us back to the original state, > regardless of what it was. As opposed to "set +f" which takes us back to > a particular state. But it is unlikely that we'd have done a global "set > -f" before calling this, so maybe that is being overly conservative. Overly conservative, yes, but if it is not too much overhead, I think it is a good practice anyway.