Hello simon,
Thanks for this quick reply.
I tried your suggestion - not finishing the reading yet.
On OpenSuse 10.2,
The first time, it did work as your demo. However, once I need to change CVSROOT via the script. It didn't work anymore. i.e. It can only be valid one time.
it-0010773:/home/sam # echo $CVSROOT
CVSROOT=
server:sam@192.168.57.65:/cvsroot
it-0010773:/home/sam # export CVSROOT=123
it-0010773:/home/sam # echo $CVSROOT
123
it-0010773:/home/sam # cat setcvs
# !/bin/bash
export CVSROOT=
server:sam@192.168.57.65:/cvsroot
it-0010773:/home/sam # ./setcvs
it-0010773:/home/sam # echo $CVSROOT
123
it-0010773:/home/sam #
On Fedora Core 3, setcvs script cannot be valid for next cvs operation. I MUST manually export CVSROOT.
Well, I will read more to figure it out.
Thanks,
cdcshu