{"thread":{"id":"7527","subject":"cg-admin-setuprepo","startedAt":"2007-04-05T16:56:53Z","lastAt":"2007-04-05T16:56:53Z","messageCount":1,"participants":["John Gateley"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"38720","messageId":"20070405115653.b028db2c.gateley@jriver.com","threadId":"7527","inReplyTo":null,"subject":"cg-admin-setuprepo","fromName":"John Gateley","fromEmail":"gateley@jriver.com","sentAt":"2007-04-05T16:56:53Z","receivedAt":"2007-04-05T16:56:53Z","isPatch":false,"sender":{"key":"gateley@jriver.com","avatar":null},"body":"Hi,\n\nI'm trying to do a cg-admin-setuprepo directory, and I'm getting\nan error:\n\nbash: line 12: syntax error near unexpected token `&&'\nbash: line 12: `[[  --ee \"/home/gateley/git/firewall.git\"\"  ]]  &&&&  ddiiee \"/home/gateley/git/firewall.gitt  aallrreeaaddyy  eexxiisstts\"\"'\n\nLooking at the source, the duplicated character problems happen here:\n\n# Careful here, no cg-Xlib functions! Also, mind that the variables\n# are substituted _before_ executing the script, not as we go. Which\n# is somewhat unfortunate in case the user passed us a path containing\n# quotes or backslashes, but only sick people do that and they receive\n# what they deserve. ;-)\n_git=\"$uri\"\ncat <<_SCRIPT_EOF_ | $shell $shellarg\n\ndie() { echo \"$*\" >&2; exit 1; }\n\n\nThe \"$*\" is where the doubled characters begin.\nI'm not enough of a shell programmer to know what's happening.\nAny ideas?\n\nThanks and please cc me on replies - I'm not on the mailing list yet...\n\nj\n"}]}