Subject: pkg/23636: netpbm:pnmindex uses invalid sh syntax
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/03/2003 18:04:15
>Number:         23636
>Category:       pkg
>Synopsis:       netpbm:pnmindex uses invalid sh syntax
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 03 17:05:00 UTC 2003
>Release:        NetBSD 1.6.1_STABLE
computer science department, university of Bonn, Germany
System: NetBSD sinus 1.6.1_STABLE NetBSD 1.6.1_STABLE (GENERIC) #4: Sun Sep 21 18:00:29 CEST 2003 ignatios@sinus:/usr/local/src/1.6/oi/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
	pnmindex doesn't work.
% pnmin
pnmindex  pnminterp pnminvert 
% pnmindex *pnm
/usr/pkg/bin/pnmindex: 110: Syntax error: Bad substitution

Some experimentation reveals that pnmindex claims to be a /bin/sh
script, but only runs with a bash.

workaround: explicitly call that script with bash.
pseudo-fix: patch package to depend on bash, and patch that script
	to use it.
fix: SMOP