* cg-admin-setuprepo
@ 2007-04-05 16:56 John Gateley
0 siblings, 0 replies; only message in thread
From: John Gateley @ 2007-04-05 16:56 UTC (permalink / raw)
To: git
Hi,
I'm trying to do a cg-admin-setuprepo directory, and I'm getting
an error:
bash: line 12: syntax error near unexpected token `&&'
bash: line 12: `[[ --ee "/home/gateley/git/firewall.git"" ]] &&&& ddiiee "/home/gateley/git/firewall.gitt aallrreeaaddyy eexxiisstts""'
Looking at the source, the duplicated character problems happen here:
# Careful here, no cg-Xlib functions! Also, mind that the variables
# are substituted _before_ executing the script, not as we go. Which
# is somewhat unfortunate in case the user passed us a path containing
# quotes or backslashes, but only sick people do that and they receive
# what they deserve. ;-)
_git="$uri"
cat <<_SCRIPT_EOF_ | $shell $shellarg
die() { echo "$*" >&2; exit 1; }
The "$*" is where the doubled characters begin.
I'm not enough of a shell programmer to know what's happening.
Any ideas?
Thanks and please cc me on replies - I'm not on the mailing list yet...
j
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-05 17:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 16:56 cg-admin-setuprepo John Gateley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).