Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#20112 - [bash-completion] completion usage error on services file

Attached to Project: Arch Linux
Opened by Evaggelos Balaskas (ebal) - Thursday, 08 July 2010, 14:47 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 16 October 2010, 21:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Bash produces a completion usage error
when there is a soft link /etc/init.d to /etc/rc.d

Additional info:

* /etc/bash_completion.d/service
# service(8) and /etc/init.d/* completion

Steps to reproduce:

# ln -s /etc/rc.d /etc/init.d

and then open bash console, it produces the below error:

complete: usage: complete [-abcdefgjksuv] [-pr] [-DE] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [name ...]
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 16 October 2010, 21:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  /etc/bash_completion.d/service has been removed in bash-completion-1.2-2
Comment by Eric Belanger (Snowman) - Thursday, 08 July 2010, 15:37 GMT
By "open bash console", do you mean starting a new terminal? If so, I can't reproduce it.
Comment by Evaggelos Balaskas (ebal) - Thursday, 08 July 2010, 15:56 GMT
Yeap, just open a new terminal with bash shell.

The dated of service file:
2010-07-06 04:20 /etc/bash_completion.d/service

bash-completion 1.2-1

Thats strange that you can't reproduce it !
Comment by Eric Belanger (Snowman) - Thursday, 08 July 2010, 16:33 GMT
It's probably because I don't have the service command. Which package provides it?

Comment by Evaggelos Balaskas (ebal) - Thursday, 08 July 2010, 17:00 GMT
[ebal@mywork ~]€ pacman -Ql | grep /etc/bash_completion.d/service
bash-completion /etc/bash_completion.d/service
Comment by Eric Belanger (Snowman) - Thursday, 08 July 2010, 18:56 GMT
I'm sorry but you misundertood me. I'm not talking about the /etc/bash_completion.d/service file which is included in the bash-completion package. The comment in the top of /etc/bash_completion.d/service refers to a 'service' command:

$ head /etc/bash_completion.d/service
# service(8) and /etc/init.d/* completion

# This completes on a list of all available service scripts for the
# 'service' command and/or the SysV init.d directory, followed by
# that script's available commands
#

I don't have this command on my system:
$ service
bash: service: command not found

Do you have this command on your system? If yes, from what package did you get it.
Comment by Evaggelos Balaskas (ebal) - Friday, 09 July 2010, 04:24 GMT
I dont have it either!
Why are you looking for the command service ?

Isnt obvious that /etc/bash_completion.d/service needs a better implementation ?

I am using archlinux on this machine for over a year now, and i havent had this behavior until the upgrade of bash_completion

Comment by Eric Belanger (Snowman) - Friday, 09 July 2010, 05:39 GMT
If you just delete /etc/bash_completion.d/service, do you still get the error? The old package didn't had this file and it probably won't work on Arch without important fixes. So it could just be removed if it's causing problems.
Comment by Evaggelos Balaskas (ebal) - Friday, 09 July 2010, 05:44 GMT
I never delete a file, i've just moved it to .services ;)

but i thought to open a bug report - maybe other people have the same usage error on their terminal with bash shell
Comment by Eric Belanger (Snowman) - Friday, 09 July 2010, 12:44 GMT
So, do the error disappear when the file is renamed?
Comment by Marcus D. Hanwell (cryos) - Saturday, 16 October 2010, 18:06 GMT
I was searching and came across this bug report...this had been annoying me for a while. The error does disappear when I remove the service file from bash_completion. It would be great to fix this up in the package, it seems like it is a useless completion on Arch if nothing else.

Loading...