[Bash-completion-devel] [Bash-completion-commits] [SCM] bash-completion branch, master, updated. 3a69bd3e9379f8092d4cb69f1f83fcfeb98aa537
Ville Skyttä
ville.skytta at iki.fi
Thu Sep 17 21:25:47 UTC 2009
On Thursday 17 September 2009, David Paleino wrote:
> The following commit has been merged in the master branch:
> commit f13ea4968bc11c69fb1f0cc88aa95dceb928ca56
> Author: David Paleino <d.paleino at gmail.com>
> Date: Thu Sep 17 22:15:13 2009 +0200
>
> Avoid sed pipe as ps itself can omit the headers (thanks to Elan
> Ruusamäe)
[...]
> - COMPREPLY=( $( compgen -W '$( command ps axo pid | sed 1d )' -- $cur ) )
> + COMPREPLY=( $( compgen -W '$( command ps axo pid= )' -- $cur ) )
[...]
> - COMPREPLY=( $( compgen -W '$( command ps axo pgid | sed 1d )' -- $cur ))
> + COMPREPLY=( $( compgen -W '$( command ps axo pgid= )' -- $cur ))
[...]
> - 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/:$//;" \
When I last worked on these, IIRC I found some systems where the "=" suffix
like in the above didn't work. It could have been a Tru64 box, but
unfortunately I don't have access to one any more to check. Just a FYI in
case someone runs into problems with this later.
More information about the Bash-completion-devel
mailing list