diff --git a/bash_completion b/bash_completion index e522898b..383d23ee 100644 --- a/bash_completion +++ b/bash_completion @@ -446,6 +446,8 @@ _pnames() # containing "/" specially unless -r is given so that wouldn't quite # work either. Perhaps it'd be best to not complete these to anything # for now. + # Not using "ps axo comm" because under some Linux kernels, it + # truncates command names (see e.g. http://bugs.debian.org/497540#19) COMPREPLY=( $( compgen -W '$( command ps axo command | \ sed -e "1d; s/ .*//; s:.*/::; s/:$//;" \ -e "s/^[[(-]//; s/[])]$//" \