On Sat, 14 May 2005 13:13:44 PDT, Norman Shapiro said:
> I accomplish a similar functionality with an sh function for use in scripts:
>
> newmh ()
> {
> local oldContext="${MHCONTEXT-context}";
> local path=`mhpath +`;
> export MHCONTEXT=,"$oldContext.$$";
> cp "$path/$oldContext" "$path/$MHCONTEXT"
> }Note that there are still race conditions in this. True, they're small, but still larger than "we never touch the context at all".
pgpiokD70VE0e.pgp
Description: PGP signature
_______________________________________________ Nmh-workers mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/nmh-workers
