]> git.pld-linux.org Git - packages/bash-completion.git/blob - bash-completion-psheader.patch
- use just one path: s#/var/cache/rpmpkgs.txt#/var/log/rpmpkgs#g
[packages/bash-completion.git] / bash-completion-psheader.patch
1 skip sed run for ps output filtering as ps itself can omit the headers
2
3 --
4 Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
5
6 --- bash-completion/bash_completion~    2009-05-24 01:07:50.000000000 +0300
7 +++ bash-completion/bash_completion     2009-05-24 01:12:42.638288264 +0300
8 @@ -447,7 +447,7 @@
9  } ||
10  _pids()
11  {
12 -       COMPREPLY=( $( compgen -W '$( command ps axo pid | sed 1d )' -- $cur ) )
13 +       COMPREPLY=( $( compgen -W '$( command ps axo pid= )' -- $cur ) )
14  }
15  
16  # This function completes on process group IDs.
17 @@ -459,7 +459,7 @@
18  } ||
19  _pgids()
20  {
21 -       COMPREPLY=( $( compgen -W '$( command ps axo pgid | sed 1d )' -- $cur ))
22 +       COMPREPLY=( $( compgen -W '$( command ps axo pgid= )' -- $cur ))
23  }
24  
25  # This function completes on process names.
26 @@ -482,8 +482,8 @@
27         # for now.
28         # Not using "ps axo comm" because under some Linux kernels, it
29         # truncates command names (see e.g. http://bugs.debian.org/497540#19)
30 -       COMPREPLY=( $( compgen -W '$( command ps axo command | \
31 -                                  sed -e "1d; s/ .*//; s:.*/::; s/:$//;" \
32 +       COMPREPLY=( $( compgen -W '$( command ps axo command= | \
33 +                                  sed -e "s/ .*//; s:.*/::; s/:$//;" \
34                                        -e "s/^[[(-]//; s/[])]$//" \
35                                        -e "s/^<defunct>$//")' \
36                                    -- $cur ) )
This page took 0.040338 seconds and 3 git commands to generate.