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

Re: [PATCH] hook: test -a|o is not POSIX

From
IMIssam E. Maghni <issam.e.maghni@mailbox.org>
Date
Jan 7, 2022, 22:31 UTC
Message-ID
<1303411829.1252938.1641594678116@office.mailbox.org>
In-Reply-To
<xmqqr19j6x92.fsf@gitster.g>
Show 11 quoted lines
> On 01/07/2022 4:39 PM Junio C Hamano <gitster@pobox.com> wrote:
> 
> "Issam Maghni via GitGitGadget" <gitgitgadget@gmail.com> writes:
> 
> > From: "Issam E. Maghni" <issam.e.maghni@mailbox.org>
> >
> > I faced `test: too many arguments` when building using sbase [1]
> 
> Building "git" with sbase?  It is curious how a loosely written
> sample hook script can cause build failures on a platform with a
> more strict userspace.

Sorry, I rather meant using git with sbase. I’ve submitted at least a half dozen patches similar to this one. My brain is in auto-mode.

Show 8 quoted lines
> Perhaps...
> 
> 	The sample update script in the templates directory uses the
> 	`-o` and `-a` binary primaries of the "test" command, which
> 	are marked obsolescent in the recent versions of POSIX.
> 
> ...would be sufficient, as 'sbase' would not be the only source of
> the userspace whose 'test' lack the -o/-a primaries.
You’re right, this is much cleaner.

I force-pushed the changes in https://github.com/git/git/pull/1172. I must admit, I’m not familiar (yet) to submitting patches through mailing lists.

Previous: Junio C HamanoNext: Bagas Sanjaya
Message 3 of 5 in “hook: test -a|o is not POSIX”
  1. hook: test -a|o is not POSIXIssam Maghni via GitGitGadget, Jan 7, 2022
  2. Junio C HamanoJan 7, 2022
  3. Issam E. MaghniJan 7, 2022
  4. Bagas SanjayaJan 9, 2022
  5. Junio C HamanoJan 9, 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.