FS#20264 - [git-1.7.2-1] /etc/bash_completion.d/git throws an error

Attached to Project: Arch Linux
Opened by solsTiCe (zebul666) - Friday, 23 July 2010, 15:10 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 27 July 2010, 11:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
on login, I have in my console an error about line 123 in /etc/bash_completion.d/git file
syntax error near unexpected token '<'

it is certainly an upstream bug. I have not reported this
This task depends upon

Closed by  Dan McGee (toofishes)
Tuesday, 27 July 2010, 11:56 GMT
Reason for closing:  Won't fix
Additional comments about closing:  See comments and real issue at  FS#20288 
Comment by solsTiCe (zebul666) - Friday, 23 July 2010, 15:19 GMT
that's strange. I don't get the error when I simply source the file from a bash shell.

I have that line in my /etc/rc.conf
DAEMONS=(syslog-ng @network @alsa hal netfs @cpufreq @preload gdm @fcron @cups @postfix @ddclient @privoxy)
and this happens after privoxy is launched. when gdm is launched with auto-login

I don't know what could cause this.
Comment by David Spicer (azleifel) - Saturday, 24 July 2010, 17:25 GMT
I haven't got the patience to work out how to report this upstream so I just changed line 123 of /etc/bash_completion.d/git to what I reckon it should be and moved on ;-)

done < $(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')

Comment by Dan McGee (toofishes) - Sunday, 25 July 2010, 05:24 GMT
If you haven't gotten the patience to report this upstream, then I haven't the patience to care at all here. Please have a bit more diligence and report it there as well.
Comment by solsTiCe (zebul666) - Sunday, 25 July 2010, 11:19 GMT
I couldn't find a bug tracker so I posted on their ML at git@vger.kernel.org

archive thread there http://news.gmane.org/find-root.php?group=gmane.comp.version-control.git&article=151723
Comment by solsTiCe (zebul666) - Tuesday, 27 July 2010, 10:18 GMT
check out the thread link above.

it seems /usr/sbin/gdm is a non-login shell (/bin/sh) script that source /etc/profile

but there is a bug in /etc/profile. it detects the shell sh as bash
so this bug could better be closed and a new one open for the /etc/profile bug  FS#20288 

Loading...