From: Lars Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 27361@debbugs.gnu.org, Phil Hagelberg <phil@hagelb.org>,
npostavs@users.sourceforge.net
Subject: bug#27361: 24.4; eshell/echo silently ignores -n argument
Date: Tue, 15 Sep 2020 17:27:12 +0200 [thread overview]
Message-ID: <87h7rz6oxb.fsf@gnus.org> (raw)
In-Reply-To: <axh8zbjtc9.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 19 Jun 2017 22:17:26 -0400")
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
next prev parent reply other threads:[~2020-09-15 15:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-14 16:15 bug#27361: 24.4; eshell/echo silently ignores -n argument Phil Hagelberg
2017-06-19 4:11 ` npostavs
2017-06-19 15:22 ` Phil Hagelberg
2017-06-20 1:57 ` Glenn Morris
2017-06-20 2:17 ` Glenn Morris
2020-09-15 15:27 ` Lars Ingebrigtsen [this message]
2022-01-16 7:19 ` bug#27361: " Jim Porter
2022-01-20 9:36 ` Lars Ingebrigtsen
2022-01-21 1:27 ` Jim Porter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7rz6oxb.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=27361@debbugs.gnu.org \
--cc=npostavs@users.sourceforge.net \
--cc=phil@hagelb.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.