# [PATCH] cogito: Escape $* in cg admin-setuprepro to fix problems with older bash versions

1 messages from 2007-03-15 to 2007-03-15. Participants: mcdmx.
Thread: https://gitlist.dev/t/7256

## mcdmx, 2007-03-15 13:53

Subject: [PATCH] cogito: Escape $* in cg admin-setuprepro to fix problems with older bash versions
Message-ID: <etbj4u$sh6$1@sea.gmane.org>
URL: https://gitlist.dev/e/etbj4u%24sh6%241%40sea.gmane.org

```
Using $* in the _Here_ document at the end of cg-admin-setuprepro seriously confuses Bash
v2.0.5b and causes lines produced by the _Here_ document to look something like

##  EEnnaabbllee ggiitt--uuppddaattee--sseerrvveerr--iinnffoo

The problem does not occur with Bash 3.1.x. The patch below fixes this by escaping the
dollar in "$*".

diff --git a/cg-admin-setuprepo b/cg-admin-setuprepo
index d407798..a37b6ae 100755
--- a/cg-admin-setuprepo
+++ b/cg-admin-setuprepo
@@ -91,7 +91,7 @@ fi
 _git="$uri"
 cat <<_SCRIPT_EOF_ | $shell $shellarg

-die() { echo "$*" >&2; exit 1; }
+die() { echo "\$*" >&2; exit 1; }

 export GIT_DIR="$uri"

```
