bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58810: 29.0.50; [PATCH] 'eshell-stringify' sometimes produces wrong


From: Jim Porter
Subject: bug#58810: 29.0.50; [PATCH] 'eshell-stringify' sometimes produces wrong results
Date: Wed, 26 Oct 2022 18:22:13 -0700

Starting from "emacs -Q -f -eshell":

  ~ $ echo $(list 'quote 'hello)
  'hell

The last character of "hello" was stripped. That's because 'eshell-stringify' tries to remove the trailing newline from 'pp-to-string', but it does so by always stripping the last character from the result. Obviously, that only works when the last character really is a newline.

Attached is a patch with regression tests for 'eshell-stringify' so that this works correctly.

Attachment: 0001-Only-strip-newlines-when-stringifying-a-value-for-Es.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]