Subject: Re: need a C++ compiler? (was: CVS commit: pkgsrc)
To: Jeremy C. Reed <reed@reedmedia.net>
From: David Laight <david@l8s.co.uk>
List: tech-pkg
Date: 02/02/2004 22:18:46
> Another problem is format of type's output:
> 
> $ echo $SHELL
> /bin/sh
> $ /bin/sh --version
> GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
> Copyright (C) 2002 Free Software Foundation, Inc.
> $ type cc
> cc is hashed (/usr/bin/cc)
> $ bash
> $ type cc
> cc is /usr/bin/cc
> $ exit
> exit
> $ type cc
> cc is hashed (/usr/bin/cc)
> 
> So matching may need to take in consideration of the parantheses "()".

Or use the the posix 'command -v cc' which, if IIRC,  is required to
report '/usr/bin/cc' and is supposedly suitable for scripts to parse.

(of course, bash is probably non-conformant...)


	David

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