GNU bug report logs - #27361
24.4; eshell/echo silently ignores -n argument

Previous Next

Package: emacs;

Reported by: Phil Hagelberg <phil <at> hagelb.org>

Date: Wed, 14 Jun 2017 16:17:02 UTC

Severity: wishlist

Found in version 24.4

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #22 received at 27361 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 27361 <at> debbugs.gnu.org, Phil Hagelberg <phil <at> hagelb.org>,
 npostavs <at> users.sourceforge.net
Subject: Re: bug#27361: 24.4; eshell/echo silently ignores -n argument
Date: Tue, 15 Sep 2020 17:27:12 +0200
Glenn Morris <rgm <at> 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




This bug report was last modified 3 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.