Re: [PATCH v5 10/12] tests: when run in Bash, annotate test failures with file name/line number
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 6, 2020, 16:33 UTC
- Message-ID
- <xmqq368d81l7.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200506134659.GA75901@Carlos-MBP>
Carlo Marcelo Arenas Belón <carenas@gmail.com> writes:
Show 7 quoted lines
>> 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?