using “sh” as a shell

export CVSROOT=”anoncvs@anoncvs.NetBSD.org:/cvsroot”
export CVS_RSH=ssh
cd /usr
cvs checkout -P pkgsrc

to update pkgsrc

cd to the pkgsrc directory then

#cvs -q update -dP