[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27361: 24.4; eshell/echo silently ignores -n argument
From: |
Lars Ingebrigtsen |
Subject: |
bug#27361: 24.4; eshell/echo silently ignores -n argument |
Date: |
Tue, 15 Sep 2020 17:27:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Glenn Morris <rgm@gnu.org> writes:
> It seems easy to get the behaviour that you want, for the
> eshell-plain-echo-behavior case, which is the only relevant one.
> At the same time, we can fix eshell/printnl for that case,
> to avoid the doubled newlines that it currently gives.
>
> I don't know how to explain in --help what -n means though. :)
[...]
> - (concat (apply 'eshell-flatten-and-stringify args) "\n")
> + (concat (apply 'eshell-flatten-and-stringify args)
> + (unless output-newline "\n"))
Hm... with or without the patch, and with eshell-plain-echo-behavior
set, I don't see any difference?
I still get this in eshell:
~/src/emacs/trunk $ echo -n foo; echo bar
foo
bar
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#27361: 24.4; eshell/echo silently ignores -n argument,
Lars Ingebrigtsen <=