[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'
 

Attachment: signature.asc
Description: Digital signature

Reply via email to