Thread (1 message) 1 message, 1 author, 2020-05-06

Re: [PATCH v5 10/12] tests: when run in Bash, annotate test failures with file name/line number

From: Junio C Hamano <hidden>
Date: 2020-05-06 16:34:05

Carlo Marcelo Arenas Belón [off-list ref] writes:
quoted
Unfortunately, it completely breaks the feature. At that point, `$LINENO`
is either unset (e.g. in `dash`) or it contains the number of the line
_containing the `echo`. That is totally useless information at this point,
we want the line number of the caller.
that seems like a bug in dash, which NetBSD sh doesn't have, as LINENO
wouldn't be unset.
I thought you already gave a perfectly well working eval '...' approach.
Was it insufficient?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help