lib/scripts/getplatform
author paulson
Fri, 31 Jan 1997 17:17:10 +0100
changeset 2574 3a832a3c6376
parent 2561 8ef656dbf4fa
permissions -rw-r--r--
Correction to Problem 24

#
# $Id$
#
# getplatform - bash source script to augment current env.
#

#get bash-style platform info -- has to work around some tricky features
unset HOSTTYPE
unset OSTYPE
PLATFORM=$(unset ENV; unset BASH_ENV; bash -norc -c 'echo $HOSTTYPE-$OSTYPE')