From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3078 invoked from network); 29 Aug 2021 20:56:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Aug 2021 20:56:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630270576; b=ixRLLS3SOaiiezJzA4LMTwcd/yoGDXWXJgqfVnaQG9QWYJgUIGrTiiVORbfOm6lGVU1HhCLKUQ Ng4T3a7pN6kTWm8OHtA7YTrvY/fthylE9R1ruaLTN9H9v337RbL6Rn3nEE4qqhtycObaAPD4H4 qgqoYo6uEDJ4XTB0hBBxP5MNPE8IMJKzqBuJcyOQD1bn/v4fTZniiWQrNrZktgvvylfMwnFOox Fzq0Qyof5fUt+F3tzgSz/TnwBGElgwZFLadmX4FZdAXbu/1/qkxNvD3liEu9rLOWvLu7/xLBr3 GNRQ7gX4oZZRlj8xy1foALAc79TpC4LunHU8fK9Z33c7uA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (rs248.mailgun.us) smtp.remote-ip=209.61.151.248; dkim=pass header.d=twistedmatrix.com header.s=smtp header.a=rsa-sha256; dmarc=none header.from=twistedmatrix.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630270576; bh=bs0ewAD8S3f2XJ0YdmK1E1PCc4Rm0O8mx48Q2RVW59I=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:Date:Message-ID:Subject:MIME-Version: Content-Transfer-Encoding:Content-Type:From:DKIM-Signature:DKIM-Signature; b=RCqTwkeBGuM68u5UbuQLYIdSAQPil3NZK4CAHJEHemUI9wc0yYw1Ph1Ja+8sDrAL4/Pwe/XTb6 JYqS9VR8eygs71+2i2RETDe8UbuEGaRTVTDx7NwWwLu7B2i8dE4NJWP+R3SiWkpn3rOYSj74pn mDqRsmC2VeGnlw92BJuDhVs8UcDOVbIgA7dUMKO54ImMfgIit0TZnJvm/mL+jC+hzfmWW+y9dR ZYS7So4ffoOp2rgjPL7cTYJiCQ+6z0liaeEaKmgjLy0aw3CFnnyy8HsvmRhqSDLAPkRyeyQ71/ rRtR8wuw7Xi28kxdXNOfl2Bz+l37H/vy5wf07gVohASnKw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:Date:Message-Id:Subject: Mime-Version:Content-Transfer-Encoding:Content-Type:From:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=9cgQYZc/3BU8YwjZCjHSiJjkIvem0r+grtnm+BXxoOc=; b=J9kWQ3ZChKjUa3L7/O8NEdXVHk AUsE/2Evjm/SHuem0aPq3l6dcWTe7eaqPiFA8lowWGBiKbJzJcVbT/SMZU/sOL64u54WxwouHJO+c jiauhDmNP4q0FpBggwK6CXEj5mOsbJErf5eaSFiPG2rJYv/ch28nDp5SAvgNK4Je7UjfLssLK9pSd Hmo1nucCbjBfHIcRrWLbFVOZTqiNXl8ah0uP9C32NaFCKes844y1B7OzpifTGsKV8alwW1Afw6YAD WZuofA9vVveu//svpQ/a2ivphzIwvsRm5wqUgulVcKz0A0yV6IYhMSYJNAMH0bdV3sNQ/DOgl8xR5 aPfxG/tg==; Received: from authenticated user by zero.zsh.org with local id 1mKRqg-0002DR-45; Sun, 29 Aug 2021 20:56:14 +0000 Authentication-Results: zsh.org; iprev=pass (rs248.mailgun.us) smtp.remote-ip=209.61.151.248; dkim=pass header.d=twistedmatrix.com header.s=smtp header.a=rsa-sha256; dmarc=none header.from=twistedmatrix.com; arc=none Received: from rs248.mailgun.us ([209.61.151.248]:13421) by zero.zsh.org with utf8esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mKRqM-0001vi-IU; Sun, 29 Aug 2021 20:55:55 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=twistedmatrix.com; q=dns/txt; s=smtp; t=1630270554; h=To: Date: Message-Id: Subject: Mime-Version: Content-Transfer-Encoding: Content-Type: From: Sender; bh=9cgQYZc/3BU8YwjZCjHSiJjkIvem0r+grtnm+BXxoOc=; b=k7xZzmKpqveBTPxuFHtW+s4bfUl7ZSW24HI/Hhvf+p5SVnWL66I50MWNsyEl4R3qRgmU3FY3 7aZddJAbPcKVdeIXTATaNsgQ7cYLFbVzBb+tEdy5ksOTJffb8QsB74rhR+opf4F/gk1sMDMh qPsCmQbbDCeubDCaGMbbbamyOH0= X-Mailgun-Sending-Ip: 209.61.151.248 X-Mailgun-Sid: WyJiOTRjZSIsICJ6c2gtd29ya2Vyc0B6c2gub3JnIiwgIjlmNWEyIl0= Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com [66.111.4.228]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 612bf455d15f4d68a2caf1e9 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Sun, 29 Aug 2021 20:55:49 GMT Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id BFA3927C0054; Sun, 29 Aug 2021 16:55:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 29 Aug 2021 16:55:48 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddujedgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephfgtgfgguffkfffvofesthhqmh dthhdtvdenucfhrhhomhepifhlhihphhcuoehglhihphhhsehtfihishhtvggumhgrthhr ihigrdgtohhmqeenucggtffrrghtthgvrhhnpedvfedvvedvudetffetgfffveegkeejie dtheeghfelteehleelgedugfejffelfeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehglhihphhhodhmvghsmhhtphgruhhthhhpvghrshhonh grlhhithihqdefjeegtddufeejjedqudegleeliedvkeelqdhglhihphhhpeepthifihhs thgvughmrghtrhhigidrtghomhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 29 Aug 2021 16:55:47 -0400 (EDT) From: Glyph Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: bug report: INTERACTIVECOMMENTS option interacts oddly with shell functions in an interactive context Message-Id: <391FB007-1453-44CF-A990-280C59750F65@twistedmatrix.com> Date: Sun, 29 Aug 2021 13:55:46 -0700 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Seq: 49328 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: If we have a shell file like this, designed to be sourced: #!/bin/zsh function sample_function () { ( setopt INTERACTIVECOMMENTS; # interactive comment test local bogus=3D"$( # test comment echo "sample value"; )"; echo "${NOTSET:-${bogus}}"; ) } Comments in sample_function are interpreted normally, but comments = *inside* the "bogus" expression will be interpreted as executing in an = interactive context, and will therefore cause errors if = INTERACTIVECOMMENTS is not set, if the overall shell is interactive. Thanks, -g=