From: Junio C Hamano Date: Wed, 06 May 2020 16:33:56 GMT Subject: Re: [PATCH v5 10/12] tests: when run in Bash, annotate test failures with file name/line number Message-ID: In-Reply-To: <20200506134659.GA75901@Carlos-MBP> Carlo Marcelo Arenas Belón writes: >> 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?