[Bug 274254] The /bin/sh $LINENO value just after a nested function is misleading.
Date: Sat, 10 Feb 2024 03:40:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274254
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 != 10)
4 - OK
2. dash
-----------
1 - OK
2 - OK
3 - OK
4 - OK
3. bash, mksh, ksh93, oksh
-----------
1 - OK
2 - FAIL (15 != 3)
3 - FAIL (22 != 10)
4 - FAIL (19 != 3)
What do we think the proper solution to this is?
--
You are receiving this mail because:
You are the assignee for the bug.