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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/403717 Title: tab-completion for kill builtin slightly lacking. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/403717/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
