export oracle_base=/u01/app/oracle
在sunos上既然报错: is not an identifier
哎,奇怪吧。
写成这样就可以了:
oracle_base=/u01/app/oracle
export oracle_base
但上面那样写在linux, hpux, aix都没有问题的。
==========================================
[rhel3]:[/templv/oracle9i/gan/src]$ sh -x 1.sh
cd dmp
echo /templv/oracle9i/gan/src/dmp
/templv/oracle9i/gan/src/dmp
pwd
echo /templv/oracle9i/gan/src/dmp
/templv/oracle9i/gan/src/dmp
[rhel3]:[/templv/oracle9i/gan/src]$ uname -a
linux rhel3 2.4.21-20.el #1 wed aug 18 20:58:25 edt 2004 i686 i686 i386 gnu/linux
[rhel3]:[/templv/oracle9i/gan/src]$ cat 1.sh
cd dmp
echo ${pwd}
echo `pwd`
注意看两个环境差别, sunos下面${pwd}和`pwd`不一样的,但我测试linux, hpux, aix都是一样的:
[sunv480]:[/dsg/oracle10/ganhk]$ sh -x 1.sh
cd dmp
echo /dsg/oracle10/ganhk
/dsg/oracle10/ganhk
pwd
echo /dsg/oracle10/ganhk/dmp
/dsg/oracle10/ganhk/dmp
[sunv480]:[/dsg/oracle10/ganhk]$ cat 1.sh
cd dmp
echo ${pwd}
echo `pwd`
[sunv480]:[/dsg/oracle10/ganhk]$ uname -a
sunos sunv480 5.10 generic_127127-11 sun4u sparc sunw,sun-fire-480r
阅读(3419) | 评论(0) | 转发(0) |