-skip sed run for ps output filtering as ps itself can omit the headers
-
---
-Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
-
---- bash-completion/bash_completion~ 2009-05-24 01:07:50.000000000 +0300
-+++ bash-completion/bash_completion 2009-05-24 01:12:42.638288264 +0300
-@@ -447,7 +447,7 @@
- } ||
- _pids()
- {
-- COMPREPLY=( $( compgen -W '$( command ps axo pid | sed 1d )' -- $cur ) )
-+ COMPREPLY=( $( compgen -W '$( command ps axo pid= )' -- $cur ) )
- }
-
- # This function completes on process group IDs.
-@@ -459,7 +459,7 @@
- } ||
- _pgids()
- {
-- COMPREPLY=( $( compgen -W '$( command ps axo pgid | sed 1d )' -- $cur ))
-+ COMPREPLY=( $( compgen -W '$( command ps axo pgid= )' -- $cur ))
- }
-
- # This function completes on process names.
-@@ -482,8 +482,8 @@
- # 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/:$//;" \
-+ COMPREPLY=( $( compgen -W '$( command ps axo command= | \
-+ sed -e "s/ .*//; s:.*/::; s/:$//;" \
- -e "s/^[[(-]//; s/[])]$//" \
- -e "s/^<defunct>$//")' \
- -- $cur ) )