GNU bug report logs -
#29156
25.3; eshell/kill does not understand -<signal>
Previous Next
Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>
Date: Sun, 5 Nov 2017 11:32:02 UTC
Severity: normal
Tags: confirmed, easy, fixed
Found in version 25.3
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #18 received at 29156 <at> debbugs.gnu.org (full text, mbox):
> From: Eric Skoglund <eric <at> pagefault.se>
> First time contributor. Here's a patch that allows eshell/kill to handle
> both the -9 case and the -SIGKILL case.
Thanks!
> * lisp/eshell/esh-proc.el: Handle -<signal> and -<SIGNALNAME>
Minor formatting nitpick, you should have the function name here:
* lisp/eshell/esh-proc.el (eshell-kill): ...
More importantly, could you explain a bit how your change works/why it's
correct?
> ((string-match "\\`-\\([[:upper:]]+\\|[[:lower:]]+\\)\\'" arg)
> - (setq signum (abs (string-to-number arg)))))
> + (setq signum (make-symbol (substring arg 1 (length arg))))))
Not sure this `make-symbol' call, should it rather be `intern'? (Maybe
we should update signal-process take a string as well a symbol.)
> (setq args (cdr args))))
> (while args
> (let ((arg (if (eshell-processp (car args))
> (process-id (car args))
> - (car args))))
> + (string-to-number (car args)))))
I think the args have already been converted to numbers, or did you mean
to also add a (put 'eshell/kill 'eshell-no-numeric-conversions t)?
This bug report was last modified 7 years and 63 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.