From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Zimmermann Newsgroups: gmane.emacs.bugs Subject: bug#59469: Adding a simpler duplication of the issue Date: Mon, 21 Nov 2022 21:50:03 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000af71c605ee063c3c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15650"; mail-complaints-to="usenet@ciao.gmane.io" To: 59469@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 22 03:51:16 2022 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 1oxJNU-0003ps-L0 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 03:51:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxJNI-0002xJ-Kk; Mon, 21 Nov 2022 21:51:04 -0500 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 1oxJNH-0002wu-1H for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 21:51:03 -0500 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 1oxJNG-0001CN-Jp for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 21:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxJNG-0000eY-G2 for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 21:51:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Milan Zimmermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2022 02:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59469 X-GNU-PR-Package: emacs Original-Received: via spool by 59469-submit@debbugs.gnu.org id=B59469.16690854482491 (code B ref 59469); Tue, 22 Nov 2022 02:51:02 +0000 Original-Received: (at 59469) by debbugs.gnu.org; 22 Nov 2022 02:50:48 +0000 Original-Received: from localhost ([127.0.0.1]:49288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxJN1-0000e6-Rg for submit@debbugs.gnu.org; Mon, 21 Nov 2022 21:50:48 -0500 Original-Received: from mail-ua1-f47.google.com ([209.85.222.47]:43567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxJMy-0000dr-PQ for 59469@debbugs.gnu.org; Mon, 21 Nov 2022 21:50:46 -0500 Original-Received: by mail-ua1-f47.google.com with SMTP id e24so4728785uam.10 for <59469@debbugs.gnu.org>; Mon, 21 Nov 2022 18:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ZNeDlhS1DGgm+qox8MZQgGM2YBd96MPFtz2S5G7z6ZQ=; b=CMUBiNzXcjGP2hYCCNBs+xuj1mZnuZYHiELBV+s6nRsEZ2ExznsUUgajFcOQ+g+l5N qDtR3kNTqUilhbgsNp1CEht1XS2Mpl50LGjU8f9Xwce+dzNh5vxnbRwz9y4uXFLIMIWI c5epQ0esbJHmY85Zdv/bVttaauvwMguKxHko/UJhyiSrRMMNLJKqPlfvq+GKS/MH5hVP TSKeS7TSTAFRTQsQQoiB7/vZeZ9KasTggp+xT1CUErcyyw1eSmQLCAliQO+fal4de0ye Obi/qdPrxpWrS3yQE2pYcpkzrKpR5kGP+nGu+TBF1xZdC/b9mWKyq+SIjzwkpAwNd5bU R5uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZNeDlhS1DGgm+qox8MZQgGM2YBd96MPFtz2S5G7z6ZQ=; b=N6KX8WnUtGAEbDtEQbndfTSISqyivkltKOhf9OPtsbLgWPfejHKS2jEI4NmkXhWV8M Xz7WYF3vUSzBIIjDHitGJEUWS2AWQkDou+yvLP7mcn16ziZ7NVUNG1JPHggJAhHZoVB4 lVe021jbQotpOxOVIbp2Hx95R1T1yXU7l3X3YjNdkBIVCQ+I5JQ/vvXaBdgoRSacpFEG /TBWAiBrEYEtDmsT0r9dGc6I6zbFJcieegcAWYZ7EBMG5fOSdx4ynoWN1WjJF5hzFPkQ NfSpmXSoYGbskGSDJFi5cULkVIWPr/gVe2J+q8Qd5TSt0byK4reQOxpe9M6YPHCFIzxO i9gQ== X-Gm-Message-State: ANoB5pkT/DIQKetK8qzM3yLJa2JqYrwKitUbYUp4PtZqxTgto7bnWysk iFuXBgFe862Th2PER7mqScGBe/w1TSMWFn1KaZIfWo4cwZ4= X-Google-Smtp-Source: AA0mqf4GQ9sPAPzfvA5jtrBy8QVS7YSGfjO77ZQQtZAMCuPqGv21Ha3B5qYfb2EB/CCg1k4Z1rvgF0GoJfoysgcm/GM= X-Received: by 2002:ab0:1e4d:0:b0:418:b7ef:ea60 with SMTP id n13-20020ab01e4d000000b00418b7efea60mr11556468uak.28.1669085438896; Mon, 21 Nov 2022 18:50:38 -0800 (PST) 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:248598 Archived-At: --000000000000af71c605ee063c3c Content-Type: text/plain; charset="UTF-8" A simpler duplication shows the issue is below. It appears the issue is is not related to the "for loop" - it can be duplicated just writing code inside the eshell { .. } block. To duplicate, please create a file ccc.el.gz - something the gzip does not fail on. Then, On the eshell prompt, enter the following code: $ export aaa="This is contents of aaa" { # create a variable in this block export bbb=$aaa; echo "Before gzip: aaa=$aaa" echo "Before gzip: bbb=$bbb"; gzip --decompress ccc.el.gz; echo "After gzip: aaa=$aaa" echo "After gzip: bbb=$bbb"; } Before gzip: aaa=This is contents of aaa Before gzip: bbb=This is contents of aaa After gzip: aaa=This is contents of aaa After gzip: bbb=nil $ Same bug: After the call to non-elisp program, /usr/bin/gzip, a previously exported variable bbb (exported inside the block) is nullified. Thanks --000000000000af71c605ee063c3c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
3D""A simpler dupl= ication=C2=A0shows the issue is below.

It appears = the=C2=A0issue is=C2=A0 is not related to the "for loop" - it can= be duplicated just writing code inside the eshell { .. } block.
<= div>
To duplicate, please create a file ccc.el.gz - something= =C2=A0the gzip does not fail on.

Then, On the eshe= ll prompt, enter the following code:

=C2=A0$=C2=A0= =C2=A0export aaa=3D"This is contents of aaa"
=C2=A0{
# create a variable in this block
export bbb=3D$aaa;
echo "Befo= re gzip: aaa=3D$aaa"
echo "Before gzip: bbb=3D$bbb";
g= zip --decompress ccc.el.gz;
echo "After gzip: aaa=3D$aaa"
e= cho "After gzip: bbb=3D$bbb";
}
Before gzip: aaa=3DThis is = contents of aaa
Before gzip: bbb=3DThis is contents of aaa
After gzip= : aaa=3DThis is contents of aaa
After gzip: bbb=3Dnil
=C2=A0$=C2=A0

Same bug: After the call to non-elisp program, = /usr/bin/gzip, a previously exported variable bbb (exported inside the bloc= k) is nullified.

Thanks
--000000000000af71c605ee063c3c--