diff options
author | Jim Porter <jporterbugs@gmail.com> | 2022-05-02 16:56:49 -0700 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-05-03 18:23:02 +0200 |
commit | a3a7279a4ab00be69519f98536ec75dc81217b50 (patch) | |
tree | 9f4c6349e0896be9a6bfae8dbe03d1e677c64d63 /test/lisp/eshell/em-extpipe-tests.el | |
parent | 06423b5d1e05d524e8e745f071cbb691b446efd2 (diff) | |
download | emacs-a3a7279a4ab00be69519f98536ec75dc81217b50.tar.gz emacs-a3a7279a4ab00be69519f98536ec75dc81217b50.tar.bz2 emacs-a3a7279a4ab00be69519f98536ec75dc81217b50.zip |
Improve the behavior of concatenating parts of Eshell arguments
Previously, concatenating a list to a string would first convert the
list to a string. Now, the string is concatenated with the last
element of the list.
* lisp/eshell/esh-util.el (eshell-to-flat-string): Make obsolete.
* lisp/eshell/esh-arg.el (eshell-concat, eshell-concat-1): New
functions.
(eshell-resolve-current-argument): Use 'eshell-concat'.
* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-concat-cmd):
Add check for concatenation of multiline output of subcommands.
(esh-var-test/quoted-interp-concat-cmd): New test.
* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-13): Use
'eshell-concat'.
* doc/misc/eshell.texi (Expansion): Document this behavior.
* etc/NEWS: Announce the change (bug#55236).
Diffstat (limited to 'test/lisp/eshell/em-extpipe-tests.el')
-rw-r--r-- | test/lisp/eshell/em-extpipe-tests.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/eshell/em-extpipe-tests.el b/test/lisp/eshell/em-extpipe-tests.el index 91c2fba4791..3b84d763ac6 100644 --- a/test/lisp/eshell/em-extpipe-tests.el +++ b/test/lisp/eshell/em-extpipe-tests.el @@ -170,7 +170,7 @@ (em-extpipe-tests--deftest em-extpipe-test-13 "foo*|bar" (should-parse '(eshell-execute-pipeline - '((eshell-named-command (concat "foo" "*")) + '((eshell-named-command (eshell-concat nil "foo" "*")) (eshell-named-command "bar"))))) (em-extpipe-tests--deftest em-extpipe-test-14 "tac *<temp" |