nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] Questionable code - the bigger picture


From: Valdis . Kletnieks
Subject: Re: [Nmh-workers] Questionable code - the bigger picture
Date: Sat, 14 May 2005 17:05:17 -0400

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".

Attachment: pgpePHEmDlamq.pgp
Description: PGP signature


reply via email to

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