| 1 |
From: Benjamin Barenblat <[email protected]> |
| 2 |
Subject: Always use /bin/sh to run rcm |
| 3 |
Forwarded: not-needed |
| 4 |
|
| 5 |
rcm only requires a POSIX-compliant shell – not Bash. The various sh |
| 6 |
options in Debian are POSIX-compliant, and many of them are |
| 7 |
substantially faster than Bash. Force rcm to run under /bin/sh, |
| 8 |
regardless of what shell’s interpreting the configure script. |
| 9 |
--- a/bin/lsrc.in |
| 10 |
+++ b/bin/lsrc.in |
| 11 |
@@ -1,4 +1,4 @@ |
| 12 |
-#!@SHELL@ |
| 13 |
+#!/bin/sh |
| 14 |
|
| 15 |
: ${RCM_LIB:=$(dirname "$0")/../share/rcm} |
| 16 |
. "$RCM_LIB/rcm.sh" |
| 17 |
--- a/bin/mkrc.in |
| 18 |
+++ b/bin/mkrc.in |
| 19 |
@@ -1,4 +1,4 @@ |
| 20 |
-#!@SHELL@ |
| 21 |
+#!/bin/sh |
| 22 |
|
| 23 |
: ${RCM_LIB:=$(dirname "$0")/../share/rcm} |
| 24 |
. "$RCM_LIB/rcm.sh" |
| 25 |
--- a/bin/rcdn.in |
| 26 |
+++ b/bin/rcdn.in |
| 27 |
@@ -1,4 +1,4 @@ |
| 28 |
-#!@SHELL@ |
| 29 |
+#!/bin/sh |
| 30 |
|
| 31 |
: ${RCM_LIB:=$(dirname "$0")/../share/rcm} |
| 32 |
. "$RCM_LIB/rcm.sh" |
| 33 |
--- a/bin/rcup.in |
| 34 |
+++ b/bin/rcup.in |
| 35 |
@@ -1,4 +1,4 @@ |
| 36 |
-#!@SHELL@ |
| 37 |
+#!/bin/sh |
| 38 |
|
| 39 |
: ${RCM_LIB:=$(dirname "$0")/../share/rcm} |
| 40 |
. "$RCM_LIB/rcm.sh" |