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

Re: [PATCH] contrib: Replaced /bin/sh with /bin/bash to make scripts with Bash syntax work on Solaris.

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 8, 2010, 03:11 UTC
Message-ID
<20100808031142.GA20077@burratino>
In-Reply-To
<1281099365-11978-1-git-send-email-asgeir@twingine.no>
Asgeir S. Nilsen wrote:
> +++ b/contrib/ciabot/ciabot.sh
> @@ -1,4 +1,4 @@
> -#!/bin/sh
> +#!/bin/bash
Maybe, relying on a sane $PATH:
	#!/usr/bin/env sh
Not sure what would happen on the less unixy platforms.
Relying on POSIX execlp:
	# shebang line omitted for portability

Simplest of all is to tweak the #! lines in whatever script is used to deploy the scripts from contrib. I would not mind seeing an install-contrib target incorporated into the Makefile that does that.

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “contrib: Replaced /bin/sh with /bin/bash to make scripts with Bash syntax work on Solaris.”
  1. contrib: Replaced /bin/sh with /bin/bash to make scripts with Bash syntax work on Solaris.Asgeir S. Nilsen, Aug 6, 2010
  2. Junio C HamanoAug 6, 2010
  3. Jonathan NiederAug 8, 2010
  4. Junio C HamanoAug 9, 2010
  5. Jonathan NiederAug 9, 2010
  6. Junio C HamanoAug 9, 2010
  7. Greg TroxelAug 10, 2010

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.