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

Re: [bash-completion] syntax error near unexpected token '<' on line 123 in bash_completion.d/git

From
solsTiCe d'Hiver <solstice.dhiver@gmail.com>
Date
Jul 25, 2010, 22:19 UTC
Message-ID
<1280096368.7211.2.camel@soho.example.org>
In-Reply-To
<4C4C982C.20904@pileofstuff.org>
Le dimanche 25 juillet 2010 à 21:01 +0100, Andrew Sayers a écrit : 
Show 6 quoted lines
> bash 4.1.5 always prepends "bash: "
> to such errors for me:
> 
> $ while false ; do echo foo ; done < ;
> bash: syntax error near unexpected token `;'
> 
bash 4.1.7 does that too here.
> If this is the complete error text, then I suspect you may have somehow
> got bash completion in a non-bash shell.
> 
the complete message is:
/etc/bash_completion.d/git: line 123: syntax error near unexpected token
'<'
/etc/bash_completion.d/git: line 123: done < <(git config -z
--get-regexp '^(svn-remote\..*\.url|bash > \.showupstream)$' 2>/dev/null
| tr '\0\n' '\n ')
> Could you add this on line 98 and let me know what it says:
> echo $BASH_VERSION $BASHOPTS

When I add the above command at line 98, it shows it is really bash running: 4.1.7(2)-release cmdhist:expand_aliases:extglob:extquote:force_fignore:interactive_comments:progcomp:promptvars:sourcepath

Previous: Andrew SayersNext: Andrew Sayers
Message 4 of 7 in “[bash-completion] syntax error near unexpected token '<' on line 123 in bash_completion.d/git”
  1. solsTiCe d'HiverJul 25, 2010
  2. Ævar Arnfjörð BjarmasonJul 25, 2010
  3. Andrew SayersJul 25, 2010
  4. solsTiCe d'HiverJul 25, 2010
  5. Andrew SayersJul 26, 2010
  6. solsTiCe d'HiverJul 27, 2010
  7. solsTiCe d'HiverJul 27, 2010

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.