[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 14c641aea51016fc9f3d2a6e9dabb585491e73f7

Ville Skyttä ville.skytta at iki.fi
Sun Feb 15 16:51:09 UTC 2009


The following commit has been merged in the master branch:
commit 14c641aea51016fc9f3d2a6e9dabb585491e73f7
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Feb 15 18:51:09 2009 +0200

    Note why "ps axo comm" is not used in _pnames on Linux.

diff --git a/bash_completion b/bash_completion
index e522898..383d23e 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/[])]$//" \

-- 
bash-completion



More information about the Bash-completion-commits mailing list