Bug#342052: subversion: Completion has an extra 'z' list item

Peter Samuelson peter at p12n.org
Mon Dec 5 11:27:11 UTC 2005


[Justin Pryzby]
> $ svnadmin  
> --version           hotcopy             recover
> create              list-dblogs         rmlocks
> d                   list-unused-dblogs  rmtxns
> deltify             load                setlog
> dump                lslocks             verify
> help                lstxns              z

Right, "d" and "z" are files in your current directory.  The bash
completion machinery mistakenly believes that the "?" subversion option
(a synonym for "help") is supposed to be expanded as a file wildcard.

The following patch will be in the next subversion upload.

Thanks,
Peter

--- /etc/bash_completion.d/subversion
+++ /etc/bash_completion.d/subversion
@@ -18,7 +18,7 @@
 
 	# Possible expansions, without pure-prefix abbreviations such as "up".
 	cmds='add blame annotate praise cat checkout co cleanup commit ci \
-              copy cp delete remove rm diff export help ? import info \
+              copy cp delete remove rm diff export help import info \
               list ls lock log merge mkdir move mv rename \
               propdel pdel propedit pedit propget pget \
               proplist plist propset pset resolved revert \
@@ -225,7 +225,7 @@
 	cur=${COMP_WORDS[COMP_CWORD]}
 
 	# Possible expansions, without pure-prefix abbreviations such as "h".
-	cmds='create deltify dump help ? hotcopy list-dblogs \
+	cmds='create deltify dump help hotcopy list-dblogs \
 	      list-unused-dblogs load lslocks lstxns recover rmlocks \
 	      rmtxns setlog verify --version'
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-subversion-maintainers/attachments/20051205/6aafa7f2/attachment.pgp


More information about the pkg-subversion-maintainers mailing list