Please review: JDK-8011348 "use of which in common/autoconf/autogen.sh is not portable"

Omair Majid omajid at redhat.com
Fri Apr 5 15:08:19 UTC 2013


On 04/02/2013 10:42 PM, Tim Bell wrote:
> I regret the fact that I did not test the fix for 8009988 (see below)
> when I reviewed it.  The script as written there assumes that the
> 'which' utility will return nothing if the command is not found.  On
> some platforms (Solaris and Windows/Cygwin to name two), the return is
> more like 'no autoconf-2.67 in $PATH'

'which' is supposed to be quite un-portable. Maybe it's best to use
something else? There are a few suggestions here:

http://stackoverflow.com/a/677212

HTH,
Omair

-- 
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681



More information about the build-dev mailing list