[Bug 274254] The /bin/sh $LINENO value just after a nested function is misleading.

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 12 Feb 2024 14:28:21 UTC

--- Comment #3 from white-pack@pm.me ---
The interest on having this working on sh is because it's the default root
shell in FreeBSD 14.0-RELEASE onwards. And according to its man page and to my
best understanding of it the thing should work (on the original post I've
attached an ad-hoc "work-around/idea" which could[?] possibly inspire a fix).

I know nothing about dash and the other shells. As commented above it seems
that dash does not have the issue; great. For the other shells I would suspect
they're are all even more flawed WRT $LINENO.

You are receiving this mail because:
You are the assignee for the bug.