Subject: Re: pkg/20826: parallel/pvm3 fails to install
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 03/21/2003 00:23:19
> >Fix:
> 	Quoting the arguments to tr in arch.mk fixes the problem.
> 
> 	Curiously, bash evaluates the command
> 
> 	  echo i386 | /usr/bin/tr [a-z] [A-Z]
> 
> 	successfully, whereas our sh does not.  Is this a bug in sh
> 	or a bug in bash, or is either behavior deemed acceptable?
> 	In any case, it seems like a good idea to quote the arguments
> 	in arch.mk.

They MUST be quoted, all shells (hopefully including bash) will expand
[a-z] to the list of all single character filenames in the current
directory.  If no such files exist they will be left alone.

Failing to quote [a-z] is a common problem :-(

	David

-- 
David Laight: david@l8s.co.uk