FS#22079 - [git] bash completion file contains a bug

Attached to Project: Arch Linux
Opened by Magnus Therning (magus) - Monday, 13 December 2010, 10:49 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 15 December 2010, 15:05 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 0
Private No

Details

Description:
When logging in I'm told that the file /etc/bash_completion.d/git contains a syntax error on line 123. That line looks like this

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

The complaint is about an unexpected token '<'.

Additional info:
* package version: 1.7.3.3-1

Steps to reproduce:
Just log in.
This task depends upon

Closed by  Dan McGee (toofishes)
Wednesday, 15 December 2010, 15:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  The cause is already captured in  FS#21068  /  FS#20264 , and fixed as of  FS#20288 .
Comment by Dan McGee (toofishes) - Monday, 13 December 2010, 16:03 GMT
$ . /etc/bash_completion.d/git
$

$ . /etc/profile.d/bash_completion.sh
$

No such problem here sourcing either of these; please do the same and show results. What is your bash version?
Comment by xduugu (xduugu) - Monday, 13 December 2010, 20:40 GMT
Looks like  FS#21068  /  FS#20264 
Comment by Magnus Therning (magus) - Tuesday, 14 December 2010, 09:15 GMT
@xduugu, yes indeed, it does look like that.  FS#20264  leads to  FS#20288 , but I don't quite understand the resolution of the latter one, " /etc/profile.$shell is no longer used". I suppose it means that there is a new bash coming down soon that removes that file, or does it? (SVN seems to be broken this morning, otherwise I'd take a look at the source for the package in testing.)
Comment by Allan McRae (Allan) - Wednesday, 15 December 2010, 03:17 GMT
Yes - this "bug" will disappear with bash-4.1.009-3 which is currently in [testing]
Comment by Magnus Therning (magus) - Wednesday, 15 December 2010, 11:09 GMT
Thanks for the clarification Allan. Then this bug can be closed I suppose.

Loading...