From unknown Wed Jun 18 00:25:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26055 <26055@debbugs.gnu.org> To: bug#26055 <26055@debbugs.gnu.org> Subject: Status: 25.1; Eshell dollar expansion $var[i] not working Reply-To: bug#26055 <26055@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:25:53 +0000 retitle 26055 25.1; Eshell dollar expansion $var[i] not working reassign 26055 emacs submitter 26055 Chunyang Xu severity 26055 minor tag 26055 confirmed fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 11 04:35:33 2017 Received: (at submit) by debbugs.gnu.org; 11 Mar 2017 09:35:33 +0000 Received: from localhost ([127.0.0.1]:50251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmdQz-00047L-ER for submit@debbugs.gnu.org; Sat, 11 Mar 2017 04:35:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmdQw-000478-NA for submit@debbugs.gnu.org; Sat, 11 Mar 2017 04:35:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmdQq-0007PO-Lf for submit@debbugs.gnu.org; Sat, 11 Mar 2017 04:35:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50187) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmdQq-0007PF-J3 for submit@debbugs.gnu.org; Sat, 11 Mar 2017 04:35:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmdQp-0003Rt-Bh for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:35:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmdQm-0007OO-84 for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:35:23 -0500 Received: from smtpbg65.qq.com ([103.7.28.233]:12503) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmdQl-0007Li-Mr for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:35:20 -0500 X-QQ-mid: bizesmtp3t1489224907t5ii05mk8 Received: from Chunyangs-MacBook-Air.local (unknown [114.236.194.125]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Sat, 11 Mar 2017 17:35:06 +0800 (CST) X-QQ-SSF: 0010000000200060F410B00A0000000 X-QQ-FEAT: sHG46Uoe4MxbJ3fx8ITfL2gH7B++Ql3vAlOdWFxDaCCGYTeCrMgRQYlg6bAJk UTfYyeVY2jYyICMNqTLuFMD0iT3jmnCi2NqycKIv87lyGB4BMLQML3IbSMs8XzjR/SeappB SwNIr2MG1n4vnePmLfBxbHqG+hcnvtqgm6oGDbY+PZm/dBNvZTH5A5UB4gkQlN2QxCuXd/u 0fUM/AsYtvTUyqPwb9QLRN71jzZR4iA4Z26XhIzcaXrb09Kb8lndaTiuzOEvB2aU= X-QQ-GoodBg: 0 From: Chunyang Xu To: bug-gnu-emacs@gnu.org Subject: 25.1; Eshell dollar expansion $var[i] not working Date: Sat, 11 Mar 2017 17:35:05 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I execute the following commands in Eshell ~ $ setq l (quote (a b c)) (a b c) ~ $ echo $l[1] ~ $ nth 1 $l b ~ $ I expect 'echo $l[1]' should print 'b' ~ $ setq s 'foo bar baz' foo bar baz ~ $ echo $s[1] ~ $ nth 1 (split-string s) bar ~ $=20 and 'echo $s[1]' should print 'bar' because in (info "(eshell) Dollars Expansion") it says =E2=80=98$var[i]=E2=80=99 Expands to the =E2=80=98i=E2=80=99th element of the value bound to =E2= =80=98var=E2=80=99. If the value is a string, it will be split at whitespace to make it a list. Again, raises an error if the value is not a sequence. Do I misunderstand this? Besides, the manual also says =E2=80=98$var[hello]=E2=80=99 Calls =E2=80=98assoc=E2=80=99 on =E2=80=98var=E2=80=99 with =E2=80=98"= hello"=E2=80=99, expecting it to be an alist (*note Association Lists: (elisp)Association List Type.). it looks like to me they are using the same syntax, if so, how can Eshell know which is which? ~ $ setq al (quote (("1" . one) ("2" . two))) (("1" . one) ("2" . two)) ~ $ echo $al[1] one ~ $ From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 14 00:01:57 2017 Received: (at 26055) by debbugs.gnu.org; 14 Mar 2017 04:01:57 +0000 Received: from localhost ([127.0.0.1]:54572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cndem-00076a-Px for submit@debbugs.gnu.org; Tue, 14 Mar 2017 00:01:56 -0400 Received: from mail-io0-f171.google.com ([209.85.223.171]:36387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cndel-00076I-0c; Tue, 14 Mar 2017 00:01:55 -0400 Received: by mail-io0-f171.google.com with SMTP id l7so96973477ioe.3; Mon, 13 Mar 2017 21:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=QSngPwh8tXru9f62M26OXuKcSrD89EvmegRI4n3NYwE=; b=uX0wWZrdYbBWBodAxUiZpNdazSXy0P/a930zrnr81kOCQ5Sy3hw9rfp25feV8HNQ43 af0UXVRxqKf64yi+M/tdLsJvVFp254gxvDxISvPtJCaTAjM7/OVFxhyZSozbO2irvzvR Qlwc3FfdX/+gfBrf6Grxjjmyca4IwvPh9Wo+r5rmVBCfYYUaSyXW1K0xMUYBlWX/OriZ qsgCfCyk5tLIhGE+Sv68M/mK8fz9WjbH0rSTV6hepRI7jPYJRE+VxcQCAbiwQO8bjOXi cKzFdHTCiVWQoo+J4Rdy4dAX8xIUcjyYxGzP2wYIGIXyosibKyqeXNXRzU4gItpvj45E W5oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=QSngPwh8tXru9f62M26OXuKcSrD89EvmegRI4n3NYwE=; b=jkbpXw9EjXlI/bkPtinAm1YtlvY80UP4a2ATW+Mix7uDZc9VvSEHwTOyvHtlWjhQHq mSgHqlKB0OH4A49zGuIu7qYkKLwUyO9FOk86Wj/la3X4YoQ7MmpGJ0Yv1RA7OUNtERoy fF+QqLBJmNUeLz2udyoi7Yz1h1QhObDvLvYF7UAVLvxdLQcdX0RHSPBpf7QhdDajL8zI EbdiNEO0VADiM7xU4cy7eQnqFh9lcjZtNxwNr4H+YNHAzLMbVaPt+j3JrPbsXCRG68eV YiIhOwtoPw+y9fDjhQcJezkbqv1WjM0VSgZNjZED8xiz4wJGWuoCPa8juwrj/yY4kV7Y VcLA== X-Gm-Message-State: AMke39koIqSMacfv5P/gM5oy3BR/3luh7/d2iNRdfPxh0gGloHKoz6nleoR9ZKp+M1u++A== X-Received: by 10.107.55.137 with SMTP id e131mr29451880ioa.105.1489464109345; Mon, 13 Mar 2017 21:01:49 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id y124sm4625990itd.19.2017.03.13.21.01.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Mar 2017 21:01:48 -0700 (PDT) From: npostavs@users.sourceforge.net To: Chunyang Xu Subject: Re: bug#26055: 25.1; Eshell dollar expansion $var[i] not working References: Date: Tue, 14 Mar 2017 00:03:06 -0400 In-Reply-To: (Chunyang Xu's message of "Sat, 11 Mar 2017 17:35:05 +0800") Message-ID: <87a88o7bet.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 26055 Cc: 26055@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.8 (/) severity 26055 minor tags 26055 confirmed quit Chunyang Xu writes: > I execute the following commands in Eshell > > ~ $ setq l (quote (a b c)) > (a b c) > ~ $ echo $l[1] > ~ $ nth 1 $l > b > ~ $ > > I expect 'echo $l[1]' should print 'b' > > ~ $ setq s 'foo bar baz' > foo bar baz > ~ $ echo $s[1] > ~ $ nth 1 (split-string s) > bar > ~ $=20 > > and 'echo $s[1]' should print 'bar' because in > (info "(eshell) Dollars Expansion") it says > > =E2=80=98$var[i]=E2=80=99 > Expands to the =E2=80=98i=E2=80=99th element of the value bound to = =E2=80=98var=E2=80=99. If the > value is a string, it will be split at whitespace to make it a > list. Again, raises an error if the value is not a sequence. > > Do I misunderstand this? Besides, the manual also says > > =E2=80=98$var[hello]=E2=80=99 > Calls =E2=80=98assoc=E2=80=99 on =E2=80=98var=E2=80=99 with =E2=80= =98"hello"=E2=80=99, expecting it to be an alist > (*note Association Lists: (elisp)Association List Type.). > > it looks like to me they are using the same syntax, if so, how can > Eshell know which is which? > > ~ $ setq al (quote (("1" . one) ("2" . two))) > (("1" . one) > ("2" . two)) > ~ $ echo $al[1] > one > ~ $ Since this apparently never worked it's hard to say what's supposed to happen, but it looks like a 'number' property is added and then ignored. Maybe something like this should be applied? --- i/lisp/eshell/esh-var.el +++ w/lisp/eshell/esh-var.el @@ -562,8 +562,10 @@ eshell-apply-indices value) =20 (defun eshell-index-value (value index) "Reference VALUE using the given INDEX." + (when (and (stringp index) (get-text-property 0 'number index)) + (setq index (string-to-number index))) (if (stringp index) (cdr (assoc index value)) (cond ((ring-p value) From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 09 20:32:01 2017 Received: (at 26055) by debbugs.gnu.org; 10 Jun 2017 00:32:01 +0000 Received: from localhost ([127.0.0.1]:37577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJUJt-0005qn-43 for submit@debbugs.gnu.org; Fri, 09 Jun 2017 20:32:01 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:34078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJUJs-0005qV-67; Fri, 09 Jun 2017 20:32:00 -0400 Received: by mail-it0-f41.google.com with SMTP id m47so2848576iti.1; Fri, 09 Jun 2017 17:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=RNKIAmDmJvXsqju02ShfO1FeUUKVmz+lLROTmo0D+iU=; b=AscSOBeh/36GGlIUt2V9PhKfkhRTK1v6fkwjAJ597+SrS69Dw59I/B897F3vnvLtfn xGrN1dVBKw+II3OOxJ1CDti+egf7cJPTCZnPA0FPwPs522+Mt1zihE0ua59hK1NzblM/ XhQDtMtUhr2qpQDsO+AVaWU0UbOeiAW/3KQ1x82u9JBf6ZcodoALoq37X3FX8bwy5f/x c+24fFI6PYJQU1M4msQNWYgTNDe19cMp8bG9+OVsfCThoiELCjAH4vyGrHq4vX77Exi2 dgwSWBbZp9IfBjju60sgvVPqKwD6PCtQVHtBouRu+lRv38yY2wFj+hx8aSwL4qpl07oS rU1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=RNKIAmDmJvXsqju02ShfO1FeUUKVmz+lLROTmo0D+iU=; b=W+/Ti/eiglNsjJkOo4mG5X2pa6hlOPCLHt2HS4FN/CKgzYi3Xeib5LbHjeKEPTXLMk adFydLVaQp0jFQMAicY/hsJBePCO6/NHgWE9BckQS7odSGx7MJa88zLoOrDidibQpjN0 ChqUb7VBrZow46W6V0if2+3R8zPrOB5YncCnL6ea9vQcKaST3PyYpxv2++rbeBrHBbzx vcDRrMDhb9OoFcYPiSwviXnKiw2EdWVfR/2b5tpSkEaPnG1FqZ9XLoDd8Zbp1CWsblXj USYqhxyhNln3Pur5yNwOcaTvA2BTdmsl+C92BwM4AIARITAASfCR+5utUr5VpgEzUrZa bO+w== X-Gm-Message-State: AODbwcCTH+5iW2PBapt9NadovqGPlqk6mDQtahrA8f1heY7EkgyUZNtv wHcX7v98WMmjvV6k X-Received: by 10.36.123.5 with SMTP id q5mr2387518itc.16.1497054714301; Fri, 09 Jun 2017 17:31:54 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id e12sm2240916itd.0.2017.06.09.17.31.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Jun 2017 17:31:53 -0700 (PDT) From: npostavs@users.sourceforge.net To: Chunyang Xu Subject: Re: bug#26055: 25.1; Eshell dollar expansion $var[i] not working References: <87a88o7bet.fsf@users.sourceforge.net> Date: Fri, 09 Jun 2017 20:33:26 -0400 In-Reply-To: <87a88o7bet.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Tue, 14 Mar 2017 00:03:06 -0400") Message-ID: <87mv9gwujt.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 26055 patch quit npostavs@users.sourceforge.net writes: > Since this apparently never worked it's hard to say what's supposed to > happen, but it looks like a 'number' property is added and then ignored. > Maybe something like this should be applied? [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.41 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.41 listed in list.dnswl.org] 1.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (npostavs[at]gmail.com) -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 26055 Cc: 26055@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 26055 patch quit npostavs@users.sourceforge.net writes: > Since this apparently never worked it's hard to say what's supposed to > happen, but it looks like a 'number' property is added and then ignored. > Maybe something like this should be applied? [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.41 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.41 listed in list.dnswl.org] 1.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (npostavs[at]gmail.com) -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid --=-=-= Content-Type: text/plain tags 26055 patch quit npostavs@users.sourceforge.net writes: > Since this apparently never worked it's hard to say what's supposed to > happen, but it looks like a 'number' property is added and then ignored. > Maybe something like this should be applied? Since `eshell-lisp-command' does the conversion of strings marked with 'number', I think it's correct to make eshell-index-value do so as well. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v1-0001-Handle-integer-indices-for-eshell-variables-Bug-2.patch Content-Description: patch >From bacbb41ab4d5539d284b1a540e70779a49c00e25 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Fri, 9 Jun 2017 19:40:38 -0400 Subject: [PATCH v1] Handle integer indices for eshell variables (Bug#26055) * lisp/eshell/esh-var.el (eshell-index-value): Convert index to number if it's been marked as one, just like `eshell-lisp-command' does. --- lisp/eshell/esh-var.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el index fe1f1188c8..cdd05bd7e9 100644 --- a/lisp/eshell/esh-var.el +++ b/lisp/eshell/esh-var.el @@ -563,6 +563,8 @@ (defun eshell-apply-indices (value indices) (defun eshell-index-value (value index) "Reference VALUE using the given INDEX." + (when (and (stringp index) (get-text-property 0 'number index)) + (setq index (string-to-number index))) (if (stringp index) (cdr (assoc index value)) (cond -- 2.11.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 17 00:16:25 2017 Received: (at 26055) by debbugs.gnu.org; 17 Jun 2017 04:16:25 +0000 Received: from localhost ([127.0.0.1]:51921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dM59s-0002jz-NV for submit@debbugs.gnu.org; Sat, 17 Jun 2017 00:16:24 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:35522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dM59q-0002jh-FP; Sat, 17 Jun 2017 00:16:22 -0400 Received: by mail-it0-f66.google.com with SMTP id f20so6789648itb.2; Fri, 16 Jun 2017 21:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ApgNLpWeMOuaUxJ0FdptQT9d5pOMWKDc2Metzb5qerg=; b=szEmevhXB5DWC+2Tqxz3QSbla3gK39dHYDSW3lJvlnVW9CKnm+PEaieAqeGMypwdvu wOELCXt6MzFF8VNyX9ZKb7RR/+QvUNdm4XskWqUvQqtIC9C9B5W2fb4TF7X0OC0LH25q tR1ix/Rbn9rvKGGfXWtV3I1MuuwRGH0UVwkvQaRgbPCIiO/LGEP6InXjwcSrjWJXC4dJ hLSvXxuNlH9Htlh89fVsG7KzATX9l6JVkikEiSyCpneuBQ9MgEhgY5udfWFpB6kVfNH8 p8TDCPsJrp8j44PiB31AnDsBr/hBBoIIzrp6BHD8DUrUIVf9u4p/1+E/zZRa3zLKZiXz FtIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=ApgNLpWeMOuaUxJ0FdptQT9d5pOMWKDc2Metzb5qerg=; b=eEWgG0G+rSSrxVPK563NxIWKWsD8ArgPLnDKHtFV4s+JadUI/l7EM092lX4NG5Kc2j Cyc+pqhSg6pT5Ii0VWps9OEVlFJINmNAoHLFPojEq5kkw+60KAyXmQ1+cmiAGWtT+86F Lto9v+CPN46pSsdlgDITIvsl51Bzq779tb7ZTAamHpQNsvIpHh7183+EkyIU+6HNTuPk hJHwreb69olBdqwh6BMv/rQeHFmcg21Z65t6UaP4zzEJhipZNQlL7vv7V25m8VsYmASA jAeIhNE6RzRcD98aWuOHEO6y9a+bLHz6WGzx6OCXlCHwNijgr6KHEttRgPtOZssw7+TE yW6Q== X-Gm-Message-State: AKS2vOygbLv/H1CInj8wEH8Hh5m8ZfPpBzeGemoWuV/TSJpDF3jtytvI AMbzTe2YKJHhQ2r4 X-Received: by 10.36.50.211 with SMTP id j202mr14043068ita.44.1497672976517; Fri, 16 Jun 2017 21:16:16 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id b21sm2330965iob.58.2017.06.16.21.16.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Jun 2017 21:16:15 -0700 (PDT) From: npostavs@users.sourceforge.net To: Chunyang Xu Subject: Re: bug#26055: 25.1; Eshell dollar expansion $var[i] not working References: <87a88o7bet.fsf@users.sourceforge.net> <87mv9gwujt.fsf@users.sourceforge.net> Date: Sat, 17 Jun 2017 00:17:52 -0400 In-Reply-To: <87mv9gwujt.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Fri, 09 Jun 2017 20:33:26 -0400") Message-ID: <87d1a3s0wf.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 26055 fixed close 26055 26.1 quit npostavs@users.sourceforge.net writes: >> Since this apparently never worked it's hard to say what's supposed to >> happen, but it looks like a 'number' property is added and then ignored. >> Maybe something like this should be applied? > > Since `eshell-lisp-command' does the conversion of strings marked with > 'number', I think it's correct to make eshell-index-value do so as well. [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.66 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.66 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (npostavs[at]gmail.com) -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 1.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: 26055 Cc: 26055@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 26055 fixed close 26055 26.1 quit npostavs@users.sourceforge.net writes: >> Since this apparently never worked it's hard to say what's supposed to >> happen, but it looks like a 'number' property is added and then ignored. >> Maybe something like this should be applied? > > Since `eshell-lisp-command' does the conversion of strings marked with > 'number', I think it's correct to make eshell-index-value do so as well. [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.66 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.66 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (npostavs[at]gmail.com) -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 1.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different tags 26055 fixed close 26055 26.1 quit npostavs@users.sourceforge.net writes: >> Since this apparently never worked it's hard to say what's supposed to >> happen, but it looks like a 'number' property is added and then ignored. >> Maybe something like this should be applied? > > Since `eshell-lisp-command' does the conversion of strings marked with > 'number', I think it's correct to make eshell-index-value do so as well. Pushed to master [1: 27c194995b]. [1: 27c194995b]: 2017-06-17 00:10:33 -0400 Handle integer indices for eshell variables (Bug#26055) http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=27c194995b460b79e8e62e0d21e85d87df664649 From unknown Wed Jun 18 00:25:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 15 Jul 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator