[Bug 403717] Re: tab-completion for kill builtin slightly lacking.

Peter Cordes peter at cordes.ca
Sat Nov 29 09:23:35 UTC 2014


I don't think numerical sorting is possible.  _kill() is getting its list of pids from
ps axo pid=
which returns a numerically sorted list, but I guess bash is lexicographically sorting completions like it always does.

 It would be possible to add completion for %jobnum, but would you
really use that?  It could only return a list of job numbers, not what
commands they were.  Given that job numbers tend to be very small and
nearby, if you don't know what job you want to kill, a list of the
numbers is unlikely to save you running a quick  jobs  command.

 Or do some people keep running a chain of background jobs so their job
numbers climb so high that you want to complete the initial 100 in front
of job 1005?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/403717

Title:
  tab-completion for kill builtin slightly lacking.

Status in bash-completion package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: bash-completion

  Ubuntu 9.04
  bash-completion 20080705ubuntu3
  1. Bash-completion for builtin jobs (preceded by %) nonexistent
  2. Is it possible to sort numerically instead of alphabetically?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/403717/+subscriptions



More information about the foundations-bugs mailing list