bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bootstrap: marking gnulib-copied/generated files as such


From: Mark D. Baushke
Subject: Re: bootstrap: marking gnulib-copied/generated files as such
Date: Fri, 08 Sep 2006 12:04:59 -0700

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

Jim Meyering <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]