chiark / gitweb /
bash_completion: fix option completion
authorMarcus Hoffmann <bubuiic@aol.com>
Wed, 13 Sep 2017 12:02:04 +0000 (14:02 +0200)
committerMarcus Hoffmann <bubuiic@aol.com>
Wed, 13 Sep 2017 12:02:04 +0000 (14:02 +0200)
Line breaks need to be escaped in the command list.

completion/bash-completion

index ef219122e6241f65b8be0d5254176928268c7671..dd1e5b29e3c8f9e6ca85bd8d084b2e68bcb2f9e5 100644 (file)
@@ -300,26 +300,26 @@ __complete_init() {
        __complete_options
 }
 
-__cmds="
-btlog
-build
-checkupdates
-dscanner
-gpgsign
-import
-init
-install
-lint
-publish
-readmeta
-rewritemeta
-scanner
-server
-signatures
-signindex
-stats
-update
-verify
+__cmds=" \
+btlog \
+build \
+checkupdates \
+dscanner \
+gpgsign \
+import \
+init \
+install \
+lint \
+publish \
+readmeta \
+rewritemeta \
+scanner \
+server \
+signatures \
+signindex \
+stats \
+update \
+verify \
 "
 
 for c in $__cmds; do