Subject: pkg/23636: netpbm:pnmindex uses invalid sh syntax
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ignatios@theory.cs.uni-bonn.de>
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
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1_STABLE
>Organization:
computer science department, university of Bonn, Germany
>Environment:
	
	
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
>Description:
	pnmindex doesn't work.
>How-To-Repeat:
% pnmin
pnmindex  pnminterp pnminvert 
% pnmindex *pnm
/usr/pkg/bin/pnmindex: 110: Syntax error: Bad substitution

>Fix:
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
>Release-Note:
>Audit-Trail:
>Unformatted: