Wednesday, July 02, 2008

Source error for sh of solaris.


$ . .shrc
GPSMET_DC_HOME=/export/home/tianyf/gpsf/external/gpsmet_dc: 不是一标识符

$ which sh
/usr/bin/sh

$ uname -a
SunOS gpsdc 5.10 Generic_120012-14 i86pc i386 i86pc

$ more .shrc
GPSMET_DC_DATA=/data0/igs0/pub; export GPSMET_DC_DATA
export GPSMET_DC_HOME=/export/home/tianyf/gpsf/external/gpsmet_dc
export PATH=$PATH:$GPSMET_DC_HOME/sh


Where is the problem? This script works well with bash.

1 comment:

Enod said...

You should use,

XXX_PATH=/where
export XXX_PATH