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

cg-admin-setuprepo

From
JGJohn Gateley <gateley@jriver.com>
Date
Apr 5, 2007, 16:56 UTC
Message-ID
<20070405115653.b028db2c.gateley@jriver.com>
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
Message 1 of 1 in “cg-admin-setuprepo”
  1. John GateleyApr 5, 2007

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.