From 14c641aea51016fc9f3d2a6e9dabb585491e73f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 15 Feb 2009 18:51:09 +0200 Subject: [PATCH] Note why "ps axo comm" is not used in _pnames on Linux. --- bash_completion | 2 ++ 1 file changed, 2 insertions(+) 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/[])]$//" \