From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 315851F4CC for ; Wed, 4 Dec 2024 14:59:05 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=SfhO3WV4; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=OMGqWhrU; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1733324342; bh=un46hFegdgsscm8+FGfMiAVkDII5YWAKk0yRAoOLidU=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=SfhO3WV4sOk5j4h6/VsXu9fAksEonbI2ZRUu/xXai9vcL4qFHlOceaYtRYfWUvfcF +8nx4R5G8tXKtdCzFAMGPQARggL03Xzme6J0ykPAi6YVUPnZ6vOY+Y3gmDCA6NFjsK jjF2STR4pZhkdhgq52eHeKG5xGqmXHvkqIFfzOW4= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 51EFF44CDC for ; Wed, 4 Dec 2024 14:59:02 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=OMGqWhrU; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 9F13844B15 for ; Wed, 4 Dec 2024 14:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=iv+q1I+h52TGHXaqWPXeYNrnPMO21+bDQpRId9RvfsA=; b=OMGqWhrU6BnNlMoIHrg+gxPY0o19SqyPaksl+Mkbq1k1In2okZgkpTZ/MfuGxHT+nszq SPmzwNMlC+KbAuzHPA3mh4N1ukUkIZD+n0JYhvu59dvBsbDxCrcy/tB8gfeyvPdhnk4odo FvDlui6FyvuM46TDm3yQQUmfOJBVVSc5Z5zpq/R61Zd/anKiDvWFmcu4ywg4usyczKjrl1 O0Ee/wMuKCaaxd1QqIUE35XygrzGoNwEn5FCMJJcZD3r8ZdI6AFDm/rzSFzz8g9pljcYK/ K9wJob0wi8yw2bv3PLZauTzUevKcpsfRxYqRHAdPFuBe4VWkAFh5DnjUwXAWrz0Q== Received: by recvd-84b546689d-th9ln with SMTP id recvd-84b546689d-th9ln-1-67506E29-7 2024-12-04 14:58:49.279653411 +0000 UTC m=+1704975.956317146 Received: from herokuapp.com (unknown) by geopod-ismtpd-34 (SG) with ESMTP id O76B3YdSTK6CQE4pG4B45w for ; Wed, 04 Dec 2024 14:58:49.157 +0000 (UTC) Date: Wed, 04 Dec 2024 14:58:49 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20918 X-Redmine-Issue-Author: mame X-Redmine-Issue-Assignee: Group (prism) X-Redmine-Issue-Priority: Normal X-Redmine-Sender: kddnewton X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 96777 X-SG-EID: =?us-ascii?Q?u001=2E41nWPij=2FD1kdGmpgWeHScbb9X8tZePZrQQx3bl8Vy2odBuMhLMhId2kIq?= =?us-ascii?Q?I4MmMJ43lNHfKPNNds=2Fb3JsTYpYoWyQb3+sPV4d?= =?us-ascii?Q?vscaSKwkBzXQJwbQvT5dS0Qi5wv2Y2n9wM=2FQ5Bp?= =?us-ascii?Q?SSEIGJxkjeTGtr69IlXdeYqR6eW+VjfXLvpFr1A?= =?us-ascii?Q?7ujcV6IkGEInKJoAehTj+ehiIjt2cHAuwE1JQlt?= =?us-ascii?Q?rPTWfPgF7Xl=2FxX8AtV25MFiJd5AgvZNmXPBUXxe?= =?us-ascii?Q?FmfBZOG+inKjWMAJbjYt4BT0UQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: MFOCBMKETFTO2ZM4IR5MYXGJ2MPY7NZS X-Message-ID-Hash: MFOCBMKETFTO2ZM4IR5MYXGJ2MPY7NZS X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120101] [Ruby master Bug#20918] Prism error indicates line number of `-e` that does not exist List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "kddnewton (Kevin Newton) via ruby-core" Cc: "kddnewton (Kevin Newton)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20918 has been updated by kddnewton (Kevin Newton). I looked into this this morning, it looks like ruby.c is automatically concatenating a \n onto the -e script here: https://github.com/ruby/ruby/blob/f43585b02c3634ab9a4e54049b08e04ab1a640fd/ruby.c#L1303. Is this desired behavior? ---------------------------------------- Bug #20918: Prism error indicates line number of `-e` that does not exist https://bugs.ruby-lang.org/issues/20918#change-110849 * Author: mame (Yusuke Endoh) * Status: Assigned * Assignee: prism * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ``` $ ruby -e 'foo(' -e: -e:2: syntax error found (SyntaxError) 1 | foo( > 2 | | ^ unexpected end-of-input; expected a `)` to close the arguments ``` It says `-e:2`, but there is no line 2 in `-e 'foo('`. `eval("foo(")` reports line 1, so I guess this issue is only for `-e`. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/