[PATCH] Use "#!/usr/bin/env bash" to run a bash script

Giorgos Keramidas keramida at ceid.upatras.gr
Sat Dec 30 13:11:37 UTC 2006


# HG changeset patch
# User Giorgos Keramidas <keramida at ceid.upatras.gr>
# Date 1167487843 -7200
# Node ID 641c3bb47e839842f05e28a86473efc6555a49ac
# Parent  050d88306939bd477fc0fda6333db9ab8b8ff2a0
Use "#!/usr/bin/env bash" to run a bash script

On FreeBSD, there is no /bin/bash executable, but if one the
shells/bash* ports is installed we have an installed executable
of bash in /usr/local/bin/bash.  Let env(1) locate it for us.

diff -r 050d88306939 -r 641c3bb47e83 tests/test-issue352
--- a/tests/test-issue352	Wed Dec 27 17:44:22 2006 +0200
+++ b/tests/test-issue352	Sat Dec 30 16:10:43 2006 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # http://www.selenic.com/mercurial/bts/issue352
 
 hg init foo



More information about the Mercurial-devel mailing list