From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#64529: 30.0.50; [PATCH] Add special $GID variable for Eshell Date: Fri, 7 Jul 2023 23:35:58 -0700 Message-ID: <7f340419-54cd-d8aa-6e1b-9b07030bbf48@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------805anFaC0zeoOSSX0X8rzmPF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37906"; mail-complaints-to="usenet@ciao.gmane.io" To: 64529@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 08 08:37:42 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qI1Zd-0009l2-Jg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Jul 2023 08:37:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qI1ZA-0000dS-7p; Sat, 08 Jul 2023 02:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qI1Z4-0000dF-4B for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 02:37:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qI1Z1-0001r2-2T for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 02:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qI1Z0-0004lP-Ds for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 02:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jul 2023 06:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64529 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168879816918250 (code B ref -1); Sat, 08 Jul 2023 06:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jul 2023 06:36:09 +0000 Original-Received: from localhost ([127.0.0.1]:44202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qI1Y8-0004kH-U6 for submit@debbugs.gnu.org; Sat, 08 Jul 2023 02:36:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:32790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qI1Y5-0004k8-3Z for submit@debbugs.gnu.org; Sat, 08 Jul 2023 02:36:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qI1Y4-0000Ze-Bc for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 02:36:04 -0400 Original-Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qI1Y1-0001hO-PV for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 02:36:04 -0400 Original-Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-553a1f13d9fso2063976a12.1 for ; Fri, 07 Jul 2023 23:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688798159; x=1691390159; h=to:subject:from:content-language:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=Kh83XTWTbvLq3E4Klluub/YtSQYWtf/ytyeaDfrQW4k=; b=SXk6Ewf4WNm9j4+TZ1FoePR1TzzRoyKdEHNrUHO/MUoB894KRrX3SDm0rfz7wHUH0P aeIY4V87KD8UQNJ4e2CJyEwI6lA8hnSD7bU9QEEPQU698EUtplmiNUE0Jg8Vq+7fEySn ddFiZ/m6Sm0dnjVhln7PiWQr97oDBVYGZ/jwQqiH6ncCHMuhjbSNcMXS7+yE3Nm8hQ// M7RTyp2XsXnEraR8EmS6Y8t8n2QNkYtlAFiorTidc+mQLWGl+X+DnD4sPjKKZrkcwCWN JS/lDVWMEBuufTA1LVbYAUykN9PwrU0kuMh0TJfD5Q9aR7avSjKIXAs02u+yI6i55tZ6 U3tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688798159; x=1691390159; h=to:subject:from:content-language:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Kh83XTWTbvLq3E4Klluub/YtSQYWtf/ytyeaDfrQW4k=; b=Qy6FjjjMoMUmBl81jBRwV+Mij8Xf39KpLOaccuU/jTejSqfsHdmXh54XkT7OqSJO57 FHYvtMkVGIkDtKG9HqA6yrp9Axycxmjc/y2PqvtnJr/+ulWI5+O6H4h3qFKjWEMohp5u WXsfCLL++i/KZeHTICBaHJ1iu+uZgZfg0vjo+ciUTdfcAd+0L5Y+dR895H4tAxN+0FEU q6eDB7yeCbAIngFJtjqhpl7xtXqY7EFAB80kH6Hfbd3XnjFeXCKQqw1xq+GLCmjYHOGi JYEe49163FdQKa4t8olaKG3DiG32Y/g8aLg4LGcNh4dgODrVKNWhWNCcL+9YWKG3YexJ jfnA== X-Gm-Message-State: ABy/qLYrvPAPXQr8M8cJxbIgvr8RuMb1nCTXxcQHQ3RwNVnfRRgP+Y3F N86f9CxrYbuxLH3qE/XdgCs6EmfwWNQ= X-Google-Smtp-Source: APBJJlGM9vRmmlikR6UxtzhABOm7rU9LZIl6j+VdvJS1vtvkalRui9ODP5vKeNfc3ZLreM/teZisZA== X-Received: by 2002:a17:902:ce8d:b0:1b8:400a:48ea with SMTP id f13-20020a170902ce8d00b001b8400a48eamr8228339plg.63.1688798159039; Fri, 07 Jul 2023 23:35:59 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id l7-20020a17090aaa8700b00264044cca0fsm5024496pjq.1.2023.07.07.23.35.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Jul 2023 23:35:58 -0700 (PDT) X-Mozilla-News-Host: news://news.gmane.io:119 Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=jporterbugs@gmail.com; helo=mail-pg1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264753 Archived-At: This is a multi-part message in MIME format. --------------805anFaC0zeoOSSX0X8rzmPF Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Currently, Eshell has a special $UID variable that's connection-aware (so it returns the remote UID if the current directory is remote). However, it doesn't do this for $GID. Here's a patch to fix that. --------------805anFaC0zeoOSSX0X8rzmPF Content-Type: text/plain; charset=UTF-8; name="0001-Add-special-GID-variable-in-Eshell.patch" Content-Disposition: attachment; filename="0001-Add-special-GID-variable-in-Eshell.patch" Content-Transfer-Encoding: base64 RnJvbSBkNWY0ZjVhOTQ0Y2I2MGY5MDY4OTc2ZDFkOTFlOTgxZDIxYzc5Y2IyIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC5j b20+CkRhdGU6IEZyaSwgNyBKdWwgMjAyMyAyMzoxODozMyAtMDcwMApTdWJqZWN0OiBbUEFU Q0hdIEFkZCBzcGVjaWFsICckR0lEJyB2YXJpYWJsZSBpbiBFc2hlbGwKCiogbGlzcC9lc2hl bGwvZXNoLXZhci5lbCAoZXNoZWxsLXZhcmlhYmxlLWFsaWFzZXMtbGlzdCk6IEFkZCAnJEdJ RCcuCiogdGVzdC9saXNwL2VzaGVsbC9lc2gtdmFyLXRlc3RzLmVsIChlc2gtdmFyLXRlc3Qv Z2lkLXZhcik6IE5ldyB0ZXN0LgoqIGRvYy9taXNjL2VzaGVsbC50ZXhpIChWYXJpYWJsZXMp OiBEb2N1bWVudCAnJEdJRCcuCi0tLQogZG9jL21pc2MvZXNoZWxsLnRleGkgICAgICAgICAg ICAgIHwgNyArKysrKysrCiBsaXNwL2VzaGVsbC9lc2gtdmFyLmVsICAgICAgICAgICAgfCAx ICsKIHRlc3QvbGlzcC9lc2hlbG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