X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 22 Nov 2007 19:26:52 +0100 From: Thomas Baker To: cygwin AT cygwin DOT com Subject: Re: Reliable old script loses data on new Cygwin installation Message-ID: <20071122182652.GA3036@octavius> References: <20071111173033 DOT GA2360 AT sub-tombaker> <20071112090628 DOT GA3792 AT sub-tombaker> <20071113165901 DOT GA2096 AT sub-tombaker> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, Nov 22, 2007 at 12:56:33PM -0500, Igor Peshansky wrote: > > The /bin/pdksh script sequence that is causing problems is: > > [snip] > > The obvious question is: do you still get the error if you replace pdksh > with bash, or is the problem pdksh-specific? > > When you reduce this to a minimal testcase, are there bits of that > testcase that require pdksh to be used? It appears that pdksh (or Cygwin) per se had nothing to do with the problem. As I reported in [1], the problem was resolved when I discovered that the anti-virus software (Anti-Vir) was checking each time a file is written to disk. When I switched off this extra check (so that Anti-Vir now checks only when files are read), the script ran perceptibly faster and data is no longer lost. I originally wrote the script using the MKS Toolkit Korn shell with DOS 3.3, and it uses some features which may be Korn shell-specific (e.g., redirecting to numbered file descriptors with constructs such as "3>|") -- I have not really tried to port it to bash. Tom [1] http://cygwin.com/ml/cygwin/2007-11/msg00313.html -- Tom Baker - tbaker AT tbaker DOT de - baker AT sub DOT uni-goettingen DOT de -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/