Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2024 03:40:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 274254] The /bin/sh $LINENO value just after a nested function is misleading.
Message-ID:  <bug-274254-227-SfIwISOl4t@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274254-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274254-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274254

Collin Funk <collin.funk1@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |collin.funk1@gmail.com

--- Comment #2 from Collin Funk <collin.funk1@gmail.com> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274254-227-SfIwISOl4t>