"Mark D. Baushke" <[EMAIL PROTECTED]> wrote: > 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 ... > This way the export is separate from the assignment and even Solaris 10 > /bin/sh will work. :-)
Thanks. I've done that: 2006-09-08 Jim Meyering <[EMAIL PROTECTED]> * bootstrap: Export CVS_RSH separate from its assignment, to work even with Solaris 10's /bin/sh. Suggestion from Mark D. Baushke. Index: bootstrap =================================================================== RCS file: /fetish/cu/bootstrap,v retrieving revision 1.13 diff -u -r1.13 bootstrap --- bootstrap 8 Sep 2006 08:59:31 -0000 1.13 +++ bootstrap 8 Sep 2006 19:24:16 -0000 @@ -137,7 +137,7 @@ esac case $CVS_RSH in - '') export CVS_RSH=ssh;; + '') CVS_RSH=ssh; export CVS_RSH;; esac trap cleanup_gnulib 1 2 13 15