From: Derrick Stolee Date: Mon, 27 Feb 2023 19:11:26 GMT Subject: Re: [PATCH v3 01/13] t2021: fix platform-specific leftover cruft Message-ID: <0aa0562e-7aa6-9442-09da-46f303d76b08@github.com> In-Reply-To: <7bbc4577a57fc9cb9debc249af232282b6b3f24f.1677511700.git.gitgitgadget@gmail.com> On 2/27/2023 10:28 AM, Elijah Newren via GitGitGadget wrote: > From: Elijah Newren > test_expect_success SYMLINKS 'the symlink remained' ' > > - test_when_finished "rm a/b" && > test -h a/b > ' > > +test_expect_success 'cleanup after previous symlink tests' ' > + rm a/b > +' I was confused why this worked without "rm -f a/b" and it seems the path exists in all cases, it's just a symlink on the filesystem in the case of the SYMLINKS prerequisite. Thanks, -Stolee