-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Meyering <[EMAIL PROTECTED]> writes:

>     case $CVS_RSH in
>     '') export CVS_RSH=ssh;;
>     esac

One of the following would be better, given that not all shells
allow assignment on an export command:

   case $CVS_RSH in '') CVS_RSH=ssh; export CVS_RSH;; esac

or

   [ -z "$CVS_RSH" ] && { CVS_RSH=ssh; export CVS_RSH; }

or

   CVS_RSH=${CVS_RSH:-ssh}; export CVS_RSH

This way the export is separate from the assignment and even Solaris 10
/bin/sh will work. :-)

        -- Mark


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iD8DBQFFAb7bCg7APGsDnFERAlG5AKCA60MQCWwDkFZmuxZHd+03zfZ2ywCfZboN
Js0g4gk+t7x11yTWhT/NfiM=
=FHei
-----END PGP SIGNATURE-----


Reply via email to