[PATCH] tests/debugedit.at: Replace 'type -p' bashism

Mark Wielaard mark@klomp.org
Tue Jul 8 09:59:36 GMT 2025


Hi Michał,

On Tue, 2025-07-08 at 07:40 +0200, Michał Górny wrote:
> Replace 'type -p' with more portable 'command -v', in order to fix
> running the test suite on non-bash shells.  Note that while the test
> itself invokes bash, the backticks are evaluated within the context
> of the shell used by autotest.

Thanks. The command -v is not strictly necessary, since the find-
debuginfo under test should be on the PATH anyway. But if we are using
a "search" to make sure it is then command -v is indeed more portable
than type -p (or which).

Applied,

Mark


More information about the Debugedit mailing list