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

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

bug#54227: 29.0.50; [PATCH] Inconsistencies with Eshell variable interpo


From: Jim Porter
Subject: bug#54227: 29.0.50; [PATCH] Inconsistencies with Eshell variable interpolation
Date: Mon, 7 Mar 2022 19:38:12 -0800

On 3/7/2022 4:52 AM, Eli Zaretskii wrote:
From: Jim Porter <jporterbugs@gmail.com>
Cc: 54227@debbugs.gnu.org
Date: Sat, 5 Mar 2022 13:44:24 -0800

+If @var{i} is a non-numeric value, expand to the value associated with
+the key @code{"i"}. For example, if @var{var} is @samp{(("dog"

Why did you need quotes in "i"?

That was my attempt to indicate that this:

  $foo[bar]

means (cdr (assoc "bar" foo)), not (cdr (assoc 'bar foo)) or (cdr (assoc bar foo)). Hopefully that's an ok way to express that. That said, this means the same thing too:

  $foo["bar"]

so it's not quite as simple as wrapping quotes around the subscript. This seemed like the simplest way to express the general idea, but it might be more technically correct to say something like, "... expand to the value associated with @var{i}'s value as a string." That wording is pretty confusing to me though...
Also, it's suppoed to be @var{i}, as in the other alternatives.

Thanks, fixed.

+@item anything else
+Raises an error.

We say "Signals an error".

Fixed there, and in the entry below about the '$#foo' syntax.

Attachment: 0001-Improve-wording-of-Eshell-variable-interpolation-cod.patch
Description: Text document

Attachment: 0002-Support-applying-indices-to-more-Eshell-dollar-expan.patch
Description: Text document


reply via email to

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