hi,
I have 2 questions
Ques1.) I have one script(profile.ksh) and I execting it by
# ./profile.ksh
./profile.ksh: bad substitution
and when I am using
ksh profile.ksh ----it is running.
but other scripts are running fine.
So can any1 tell me what is wrong with it
Ques2.) in profile.ksh I want to set some envirnment variable but I am not able to set it
I am writing some variables which I have to set
COMMON_USER_HOME=${HOME}
export COMMON_USER_HOME
echo COMMON_USER_HOME=$COMMON_USER_HOME
export P4USER="AbcdeF"
echo P4USER=$P4USER
but when I am running my file profile.ksh and echoing the variable then I am able to see the output of the variables:
# echo $SHELL
/bin/sh
COMMOM_USER_HOME=/home/User1
P4USER=AbcdeF
but not able to see it as exported when using set commond