After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 523732 - gvfs-bash-completion.sh should not modify COMP_WORDBREAKS
gvfs-bash-completion.sh should not modify COMP_WORDBREAKS
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-03-21 20:57 UTC by Yanko Kaneti
Modified: 2009-03-09 16:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yanko Kaneti 2008-03-21 20:57:42 UTC
COMP_WORDBREAKS is a global variable that affects all completions. This snippet 

COMP_WORDBREAKS=${COMP_WORDBREAKS//:}

breaks currently working bash completion functions for at least scp, mount, chown. Arguably all these and gvfs should be made resilient to different values of COMP_WORDBREAKS but thats a bigger task I guess.
Comment 1 Alexander Larsson 2008-03-25 15:39:47 UTC
Is there any local way to make it not break on colon? Its kinda useless for uris without that.
Comment 2 Yanko Kaneti 2008-03-31 18:47:06 UTC
I expected to find something about it in the "complete" command parameters, but I can't see it. I don't know. Its quite useless this way indeed.
Comment 3 Max Bowsher 2008-10-30 10:27:31 UTC
The existing bash-completion completion for scp requires colon in COMP_WORDBREAKS to work properly but still is sensitive to the text coming before the colon. Perhaps the gvfs completion could use a similar technique?
Comment 4 Yanko Kaneti 2009-01-10 08:49:11 UTC
Regardless of whether each command specific completion function is ready to deal with various values of COMP_WORDBREAKS, gvfs-completion.sh is clearly not the place to modify that global variable. 
So while no one steps up to fix the gvfs specific completion function, everything else has been broken by this for almost a year now. I hope you see the problem there.

Comment 5 Alexander Larsson 2009-03-09 16:20:36 UTC
2009-03-09  Alexander Larsson  <alexl@redhat.com>

	Bug 523732 – gvfs-bash-completion.sh should not modify COMP_WORDBREAKS

	* programs/gvfs-bash-completion.sh:
	Don't override COMP_WORDBREAKS, instead workaround the colon problem