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

Re: difftool: honor --trust-exit-code for builtin tools

From
Aaron Schrab <aaron@schrab.com>
Date
Nov 17, 2014, 22:15 UTC
Message-ID
<20141117221536.GG615@pug.qqx.org>
In-Reply-To
<xmqq4mtz10ef.fsf@gitster.dls.corp.google.com>
At 10:11 -0800 16 Nov 2014, Junio C Hamano <gitster@pobox.com> wrote:
>It does not have any significance that a random shell implementation
>is not POSIX compliant.  That would merely mean that such a shell
>cannot be used to run POSIX shell scripts like our Porcelain.

Right, and I suspect that it's very rare for zsh to be used as /bin/sh. I've heard of people doing it just to see what would fail, but not of anybody doing that for regular use.

>I would suspect that zsh has more "posixly correct" mode, with which
>it _can_ run POSIX shell scripts, and I would imagine that this 
>"$status is an alias $?" business is disabled in that mode? 

Yes, if zsh is invoked as either "sh" or "ksh" it attempts to emulate the usual semantics of the named shell. One of the differences is that $status isn't special in the emulation modes.

Previous: Junio C HamanoNext: Andreas Schwab
Message 7 of 8 in “difftool: honor --trust-exit-code for builtin tools”
  1. difftool: honor --trust-exit-code for builtin toolsDavid Aguilar, Nov 14, 2014
  2. Junio C HamanoNov 14, 2014
  3. David AguilarNov 14, 2014
  4. Mikael MagnussonNov 16, 2014
  5. David AguilarNov 16, 2014
  6. Junio C HamanoNov 16, 2014
  7. Aaron SchrabNov 17, 2014
  8. Andreas SchwabNov 16, 2014

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.