1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/eshell
Jim Porter 00649042f3 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.
2024-06-09 13:31:08 -07:00
..
em-alias.el Make Eshell's "which" command extensible 2024-05-29 19:33:13 -07:00
em-banner.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-basic.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-cmpl.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-dirs.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-elecslash.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-extpipe.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-glob.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-hist.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-ls.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-pred.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-prompt.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-rebind.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-script.el ; Add another test for 'eshell-batch-script' 2024-06-09 11:53:29 -07:00
em-smart.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-term.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-tramp.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-unix.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
em-xtra.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
esh-arg.el Remove empty Eshell commands when parsing 2024-06-09 13:31:08 -07:00
esh-cmd.el Remove empty Eshell commands when parsing 2024-06-09 13:31:08 -07:00
esh-ext.el Make Eshell's "which" command extensible 2024-05-29 19:33:13 -07:00
esh-io.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
esh-mode.el Improve implementations of some Eshell output filter functions 2024-06-08 12:29:29 -07:00
esh-module.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
esh-opt.el ; Compute the list of symbols for 'eshell-eval-using-options' once 2024-02-13 12:27:38 -08:00
esh-proc.el ; Clean up some 'require' and 'declare-function' calls in Eshell 2024-05-10 09:27:30 -07:00
esh-util.el Fix Eshell tests on MS-Windows 2024-06-09 10:56:39 +03:00
esh-var.el Be more efficient when buffering output in Eshell 2024-06-08 12:29:29 -07:00
eshell.el Fix adding to history via 'eshell-command' 2024-05-28 14:43:28 -07:00