diff options
| author | Jim Porter | 2024-06-09 13:17:53 -0700 |
|---|---|---|
| committer | Jim Porter | 2024-06-09 13:31:08 -0700 |
| commit | 00649042f3057c9ea2e6a4944924293998e2a527 (patch) | |
| tree | b4dc26b32a75a1bae997232f0b381fefcdfac64f /java | |
| parent | 968bbdb317abf025e1d2cbd9dc5c20def7e3912a (diff) | |
| download | emacs-00649042f3057c9ea2e6a4944924293998e2a527.tar.gz emacs-00649042f3057c9ea2e6a4944924293998e2a527.zip | |
Remove empty Eshell commands when parsing
This improves the logic for copying/stealing handles when constructing
the command form: now, we should always steal the handles for the last
real command, even if there were some trailing semicolons.
* lisp/eshell/esh-arg.el (eshell-parse-delimiter): Be stricter about
parsing so that things like "& &" aren't parsed as a single "&&" token.
* lisp/eshell/esh-cmd.el (eshell-parse-command): Get the commands in
reverse, and remove any nil commands.
(eshell-split-commands): Always return the trailing terms (except when
there were no terms to begin with).
* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/empty-background-command): New test.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions