On Thursday 17 September 2009, David Paleino wrote: > The following commit has been merged in the master branch: > commit f13ea4968bc11c69fb1f0cc88aa95dceb928ca56 > Author: David Paleino <[email protected]> > 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. _______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
