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

Re: git maintenance broken on FreeBSD

From
Đoàn Trần Công Danh <congdanhqx@gmail.com>
Date
Aug 13, 2022, 15:37 UTC
Message-ID
<YvfFUuuydtYeuvRx@danh.dev>
In-Reply-To
<xmqqczd4ag8f.fsf@gitster.g>
On 2022-08-12 22:02:08-0700, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> Todd Zullinger <tmz@pobox.com> writes:
> 
> > If a change like this is made, aren't we trading one group
> > of broken users for another?  It would fix users of newer
> > systems at the expense of those on older systems, I would
> > suspect.
> 
> So, it is fairly clear that "crontab" wants a real file.  Somebody's
> POSIX compliant "crontab" can be fed "-", attempt to read from a
> file with such a name, and legitimately fail.  And on such a system,
> the proposed patch causes a regression.

Then, we are getting back to point #0, we don't have universally way to specify stdin as input file for crontab(1) and "crontab -e" is optional.

Perhaps, FreeBSD needs to carry this patch downstream; or we will invent new preprocessor, let's say CRONTAB_DASH_IS_STDIN which is defined in FreeBSD, and another config, let's say crontab.dashIsStdin (in order to allow users swap their default cron) which is default to 1 if CRONTAB_DASH_IS_STDIN is defined, and 0 otherwise. So, everyone will be happy. Thought?

-- 
Danh
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 19 in “git maintenance broken on FreeBSD”
  1. Renato BotelhoAug 12, 2022
  2. Đoàn Trần Công DanhAug 12, 2022
  3. Todd ZullingerAug 13, 2022
  4. Junio C HamanoAug 13, 2022
  5. Đoàn Trần Công DanhAug 13, 2022
  6. Junio C HamanoAug 13, 2022
  7. brian m. carlsonAug 13, 2022
  8. Derrick StoleeAug 15, 2022
  9. Junio C HamanoAug 15, 2022
  10. gc: use temporary file for editing crontabbrian m. carlson, Aug 23, 2022
  11. Johannes SchindelinAug 23, 2022
  12. Derrick StoleeAug 23, 2022
  13. brian m. carlsonAug 23, 2022
  14. Junio C HamanoAug 24, 2022
  15. gc: use temporary file for editing crontabbrian m. carlson, Aug 28, 2022
  16. Junio C HamanoAug 29, 2022
  17. Renato BotelhoAug 29, 2022
  18. Derrick StoleeAug 30, 2022
  19. test-crontab: minor memory and error handling fixesJeff King, Aug 30, 2022

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.