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

Re: t4216-log-bloom.sh broken ?

From
Torsten Bögershausen <tboegi@web.de>
Date
May 2, 2024, 20:51 UTC
Message-ID
<20240502205121.GB11895@tb-raspi4>
In-Reply-To
<xmqqsez0c6ma.fsf@gitster.g>
On Thu, May 02, 2024 at 01:15:57PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
> > I am curious what other differences Torsten will find out between
> > good macs and bad ones.  Perhaps we can narrow down the bad apples?
>
> So, "no, your 'mv' is broken" seems to be the answer to the question
> on the Subject line, and it is rather well-known, it seems.
[]
>  		"$@" <"$fn" >"$fn.tmp" &&
> -	mv "$fn.tmp" "$fn"
> +	# some vintages of macOS 'mv' fails to overwrite a read-only file.
> +	mv -f "$fn.tmp" "$fn"

Thanks folks for digging - the patch makes both test cases pass. Some official information:

$ man mv

on the both machines says [snip] If the destination path does not have a mode which permits writing, mv prompts the user for confirmation as specified for the -i option.

To summarize what I have at hand right now: MacOs 11.7.10 fails t4216 and t5318, both pass under MacOs 13.6.6

But why doesn't `mv` not hang then ?
Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 12 in “[ANNOUNCE] Git v2.45.0”
  1. Junio C HamanoApr 29, 2024
  2. rsbecker@nexbridge.comMay 1, 2024
  3. t4216-log-bloom.sh broken ?Torsten Bögershausen, May 2, 2024
  4. Junio C HamanoMay 2, 2024
  5. Torsten BögershausenMay 2, 2024
  6. SZEDER GáborMay 2, 2024
  7. Junio C HamanoMay 2, 2024
  8. Junio C HamanoMay 2, 2024
  9. Junio C HamanoMay 2, 2024
  10. Torsten BögershausenMay 2, 2024
  11. Junio C HamanoMay 2, 2024
  12. Junio C HamanoMay 2, 2024

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.