[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-532-gd54db35

Ville Skyttä ville.skytta at iki.fi
Wed Nov 9 16:36:22 UTC 2011


The following commit has been merged in the master branch:
commit 0202ac4e2a5dcd8ccfa2cf38e89c79112dbef6b8
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Nov 9 18:35:37 2011 +0200

    cppcheck -j: Use _ncpus.

diff --git a/completions/cppcheck b/completions/cppcheck
index dc32139..465f40d 100644
--- a/completions/cppcheck
+++ b/completions/cppcheck
@@ -28,7 +28,7 @@ _cppcheck()
             return
             ;;
         -j)
-            COMPREPLY=( $( compgen -W '{2..16}' -- "$cur" ) )
+            COMPREPLY=( $( compgen -W "{2..$(_ncpus)}" -- "$cur" ) )
             return
             ;;
         --std)

-- 
bash-completion



More information about the Bash-completion-commits mailing list