perf completion: Factor out compgen stuff
authorRamkumar Ramachandra <artagnon@gmail.com>
Sun, 17 Nov 2013 16:13:24 +0000 (21:43 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 Nov 2013 17:58:35 +0000 (14:58 -0300)
commit12f9dd5042483698c74a133d9004ff1d1a6474f9
tree780bc2bee413dffa36943d3b9c97e3a28670c6fe
parent2cf025e69543f5f4aa68e8549d60680515fef5ad
perf completion: Factor out compgen stuff

compgen is a bash-builtin; factor out the invocations into a separate
function to give us a chance to override it with a zsh equivalent in
future patches.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1384704807-15779-3-git-send-email-artagnon@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bash_completion