Re: pkg/60388: xmlto uses `type -p cygpath`, is that a bashism

"David H. Gutteridge via gnats" <[email protected]> Tue, 30 Jun 2026 03:40:02 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
The following reply was made to PR pkg/60388; it has been noted by GNATS.

From: "David H. Gutteridge" <[email protected]>
To: [email protected]
Cc: 
Subject: Re: pkg/60388: xmlto uses `type -p cygpath`, is that a bashism
Date: Mon, 29 Jun 2026 23:35:11 -0400

 The short answer would be "type -p" isn't universally supported by
 modern Unix shells. It was removed from NetBSD's sh prior to the
 9.0 release. "command -v" should probably be used here instead.
 
 (If interested in more detail about this, please see:
 https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=3D54803
 )
 
 I can look at tweaking xmlto in pkgsrc, if it helps.
 
 Regards,
 
 Dave