GNU bug report logs -
#16197
24.3.50; no completion on commands following "sudo" in shell and eshell
Previous Next
Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Date: Fri, 20 Dec 2013 08:20:01 UTC
Severity: minor
Tags: fixed, patch
Found in version 24.3.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
After applying the patch on previous mail, that among other things fix:
[...] | xargs <completion>
but not
[...] | xargs -<arg> <completion>
This definition of pcomplete/xargs fix it:
--8<---------------cut here---------------start------------->8---
(defun pcomplete/xargs ()
"Completion for `xargs'."
(let ((pcomplete-cmd-name (pcomplete-command-name)))
(cond ((string= "xargs" pcomplete-cmd-name)
(while (pcomplete-here*
(funcall pcomplete-command-completion-function)
(pcomplete-arg 'last) t)))
(t (funcall (or (pcomplete-find-completion-function (pcomplete-arg 1))
pcomplete-default-completion-function))))))
--8<---------------cut here---------------end--------------->8---
Note that there is no completion on the args, but that could be done
later (no urge for this).
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
This bug report was last modified 4 years and 238 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.