{"thread":{"id":"24751","subject":"Patch for git-completion.bash [SEC=UNCLASSIFIED]","startedAt":"2010-08-16T00:53:07Z","lastAt":"2010-08-16T05:45:21Z","messageCount":3,"participants":["David Scurrah","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"148164","messageId":"0E3686EB9FA8AA409AFA0A25468DCE4301309C3DE865@BOM-VMBX-HO.bom.gov.au","threadId":"24751","inReplyTo":null,"subject":"Patch for git-completion.bash [SEC=UNCLASSIFIED]","fromName":"David Scurrah","fromEmail":"d.scurrah@bom.gov.au","sentAt":"2010-08-16T00:53:07Z","receivedAt":"2010-08-16T00:53:07Z","isPatch":false,"sender":{"key":"d.scurrah@bom.gov.au","avatar":null},"body":"\n\n\nFrom 593b92c22fb72884c4d61e6a4ae1dd65db89425f Mon Sep 17 00:00:00 2001\nFrom: David Scurrah <dscurrah@bom.gov.au>\nDate: Mon, 16 Aug 2010 10:35:28 +1000\nSubject: [PATCH] Completion script fails because of syntax error\n\n---\n contrib/completion/git-completion.bash |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 6756990..64b4f09 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -120,7 +120,7 @@ __git_ps1_show_upstream ()\n \t\t\tupstream=svn+git # default upstream is SVN if available, else git\n \t\t\t;;\n \t\tesac\n-\tdone < <(git config -z --get-regexp '^(svn-remote\\..*\\.url|bash\\.showupstream)$' 2>/dev/null | tr '\\0\\n' '\\n ')\n+\tdone < $(git config -z --get-regexp '^(svn-remote\\..*\\.url|bash\\.showupstream)$' 2>/dev/null | tr '\\0\\n' '\\n ')\n \n \t# parse configuration values\n \tfor option in ${GIT_PS1_SHOWUPSTREAM}; do\n-- \n1.7.0.1\n\n"},{"id":"148166","messageId":"AANLkTimGrrvz6myV=Fmioqh9=rt+Fh7qSSLcoma6Z-Bw@mail.gmail.com","threadId":"24751","inReplyTo":"0E3686EB9FA8AA409AFA0A25468DCE4301309C3DE865@BOM-VMBX-HO.bom.gov.au","subject":"Re: Patch for git-completion.bash [SEC=UNCLASSIFIED]","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2010-08-16T01:09:18Z","receivedAt":"2010-08-16T01:09:18Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Mon, Aug 16, 2010 at 00:53, David Scurrah <D.Scurrah@bom.gov.au> wrote:\n\nThanks for not sending a classified patch.\n\nHave you seen the \"[bash-completion] syntax error near unexpected\ntoken '<' on line 123 in bash_completion.d/git\" thread recently on\nthis list? It probably describes the problem you're having.\n"},{"id":"148178","messageId":"0E3686EB9FA8AA409AFA0A25468DCE4301309C3DE86C@BOM-VMBX-HO.bom.gov.au","threadId":"24751","inReplyTo":"AANLkTi=QY+3M9jpuwXVcH1-yFhNQrjTfL9epTL-OYGMY@mail.gmail.com","subject":"Re: Patch for git-completion.bash [SEC=UNCLASSIFIED]","fromName":"David Scurrah","fromEmail":"d.scurrah@bom.gov.au","sentAt":"2010-08-16T05:45:21Z","receivedAt":"2010-08-16T05:45:21Z","isPatch":false,"sender":{"key":"d.scurrah@bom.gov.au","avatar":null},"body":"Thanks reading the list showed running as sh instead of bash was my problem\n\nI am trying to combine the very useful git-prompt\n(http://volnitsky.com/project/git-prompt/) and git-completion.bash\nscripts as each had something the other lacked.\n\nThe problem is that while git-prompt suggests you start it from .bashrc\nvia \n[[ $- == *i* ]]   &&   . /path/to/git-prompt.sh\n\nUsing . to execute git-completion.bash runs sh which runs bash in sh\nemulation mode which makes it fail in several places.\n\nI did see a thread about an attempt to make the script zsh compliant as\nwell, I wonder if it would be better to just make it sh compliant so\nthat it is more portable, I guess that's too hard\n\nregards\n\nDavid Scurrah\n> >\n> > On Mon, 2010-08-16 at 04:14 +0000, Ævar Arnfjörð Bjarmason wrote:\n> >> On Mon, Aug 16, 2010 at 04:09, David Scurrah <D.Scurrah@bom.gov.au> wrote:\n> >> > Hi,\n> >> >\n> >> > On Mon, 2010-08-16 at 01:09 +0000, Ævar Arnfjörð Bjarmason wrote:\n> >> >> On Mon, Aug 16, 2010 at 00:53, David Scurrah <D.Scurrah@bom.gov.au> wrote:\n> >> >>\n> >> >> Thanks for not sending a classified patch.\n> >> >\n> >> > Ha ha - the Australian Government has to have email classifications for\n> >> > every email sent - classified I believe just means I do not wish you to\n> >> > share it not that it is a state secret (see one implementation\n> >> > http://www.janus.net.au/janusSEAL/Outlook/features)\n> >> >\n> >> >\n> >> >> Have you seen the \"[bash-completion] syntax error near unexpected\n> >> >> token '<' on line 123 in bash_completion.d/git\" thread recently on\n> >> >> this list? It probably describes the problem you're having.\n> >> >\n> >> > I'll looked hard and can't find the thread you mentioned\n> >> > and the current version on my Fedora system does not complete first\n> >> > level commands like checkout ...\n> >>\n> >> http://comments.gmane.org/gmane.comp.version-control.git/151723\n> >>\n> >> > Maybe there is something I am missing.\n> >>\n> >> You're probably executing the completion file in bash's sh compatibility mode.\n\n\n"}]}