git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t2004: use test_path_is_file instead of test -f

From
Usman Akinyemi <usmanakinyemi202@gmail.com>
Date
Feb 22, 2026, 09:44 UTC
Message-ID
<CAPSxiM8f59DK75BeXXo53A2wRqtxd2wQ-ejpmGTyjnSsVTJFBA@mail.gmail.com>
In-Reply-To
<pull.2049.git.1771694893208.gitgitgadget@gmail.com>
Show 14 quoted lines
>                 test $(cat ../$s1) = tree1asubdir/path5)
> @@ -230,7 +230,7 @@ test_expect_success 'checkout --temp symlink' '
>         test_line_count = 1 actual &&
>         test $(cut "-d  " -f2 actual) = path6 &&
>         p=$(cut "-d     " -f1 actual) &&
> -       test -f $p &&
> +       test_path_is_file $p &&
>         test $(cat $p) = path7
>  '
>
>
> base-commit: 67ad42147a7acc2af6074753ebd03d904476118f
> --
> gitgitgadget
I reviewed this patch, it looks good to me.
>
Previous: Lambert Duclos via GitGitGadget
Message 2 of 2 in “t2004: use test_path_is_file instead of test -f”
  1. t2004: use test_path_is_file instead of test -fLambert Duclos via GitGitGadget, Feb 21, 2026
  2. Usman AkinyemiFeb 22, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.