From nobody Sat Feb 10 03:40:20 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TWxLr3Vwfz58klV for ; Sat, 10 Feb 2024 03:40:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TWxLr2PQhz4rss for ; Sat, 10 Feb 2024 03:40:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707536420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bFPr90C1Xz8/M1a+kqyxaLH6oLxhgDkc5t39X1I3uqw=; b=HGzJi9KmBZyjJ2BGkM4gNnSpPoOX59Pzv5z4LEUv2QYZc5DASCWKLd5y9gnEmvT5e6gUfM BbUiPbE8SFkNwlAuQwqHgNVANRbR/qdHJ89/+Bc5X3G86ib5HpTeZXovnvEsd96HCYAfFV Y/lhj7CcytwxiujTsUXlS7aMv6gdhLsDXRAP/R3fobmFDvd8h4EwHwiejPieq9PAWEdTbQ owvldV5I+62MVPO8zvhYg9fC3LgDo5qyzOveI1qiBjx79319FndTbrakC3+Goi1M5J/Dd1 sPsyc2EtgJJ0GIJPPbdgLWinEf+PvzTUO17wXd6rBFWtEbNH4UjyBhXUmnk1Ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707536420; a=rsa-sha256; cv=none; b=Z6JgapavmWvOUCjtvmTcil+4GuMcuRbL4Lvp1Pv1xmCsQ1YYoNIwFCu3gS4I5AanpfXsTx vQGRwmXefuGXD7F9JM9RRXgGAA6rYRgMLAkUDdzS66zGjMn4vqqpFIr/49Jo1JzKfF967r +lPJsL1FLA8XOj2I4t7mjHU37kA8EtHiBJ5SXJamJdauwwODX3OwEJnaqaAKrsXRa0gaj6 MGQTBffBI15rVhi5Y39NwGNlVid92Pxkjjvni1zhpD4DcQcDyEN5Y+2JqiweQJA3tqJdS7 Ew+fdyXoUb8vXT6MAIP8keUp38W9G5DA8XIub7EaWociKYAPZXZFqVstalUD0g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TWxLr1NDYz10mK for ; Sat, 10 Feb 2024 03:40:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 41A3eKDD013789 for ; Sat, 10 Feb 2024 03:40:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41A3eKJP013788 for bugs@FreeBSD.org; Sat, 10 Feb 2024 03:40:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274254] The /bin/sh $LINENO value just after a nested function is misleading. Date: Sat, 10 Feb 2024 03:40:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: collin.funk1@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274254 Collin Funk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |collin.funk1@gmail.com --- Comment #2 from Collin Funk --- Was bored and looking for interesting bugs to work on. I tried the script in the body of your message with a few shells. The following tests are all on FreeBSD 14.0. 1. /bin/sh ----------- 1 - OK 2 - OK 3 - FAIL (22 !=3D 10) 4 - OK 2. dash ----------- 1 - OK 2 - OK 3 - OK 4 - OK 3. bash, mksh, ksh93, oksh ----------- 1 - OK 2 - FAIL (15 !=3D 3) 3 - FAIL (22 !=3D 10) 4 - FAIL (19 !=3D 3) What do we think the proper solution to this is? --=20 You are receiving this mail because: You are the assignee for the bug.=